Function at 0x534520
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x57a926
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x4c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x53457c
xor eax, eax
jmp 0x534a65
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea ebp, [esi + 4]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x20]
push edx
push 4
lea edi, [esi + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [edi]
imul edi, dword [ebp]
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0055a118
add esp, 4
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x44], ebp
cmp eax, ebp
je 0x5345f7
push fcn.00532660
push 0x532620
push edi
lea ebp, [eax + 4]
push 0x2c
push ebp
mov dword [eax], edi
call fcn.0055c3bc
cmp dword [esi + 8], 0
mov dword [esp + 0x44], 0xffffffff
mov dword [esi + 0xc], ebp
mov dword [esp + 0x14], 0
jbe 0x534673
xor ebp, ebp
cmp dword [esi + 4], ebp
jbe 0x534665
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi + 4]
imul edi, dword [esp + 0x14]
add edi, ebp
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x53465f
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, edi
call edx
mov ax, word [esp + 0x4c]
mov word [edi + 0x1c], ax
inc ebp
cmp ebp, dword [esi + 4]
jb 0x534617
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 8]
jb 0x534610
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ecx
mov dword [esi + 0x10], ecx
mov ecx, edx
mov eax, 0xaaaaaaab
mul edi
shr ecx, 1
shr edx, 1
mov dword [esi + 0x1c], edx
imul edx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edi
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0055a118
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], 1
test eax, eax
je 0x5346fc
push fcn.00532660
push 0x532620
push edi
lea ebx, [eax + 4]
push 0x2c
push ebx
mov dword [eax], edi
call fcn.0055c3bc
jmp 0x5346fe
xor ebx, ebx
cmp dword [esi + 0x1c], 0
mov dword [esp + 0x44], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [esp + 0x18], 0
jbe 0x534a60
mov ebx, 2
mov dword [esp + 0x30], ebx
cmp dword [esi + 0x18], 0
mov dword [esp + 0x14], 0
jbe 0x534a47
mov edi, 2
jmp 0x534740
mov eax, dword [esi + 4]
lea ebp, [edi - 2]
cmp ebp, eax
jae 0x534767
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x534767
mov edx, eax
imul edx, ecx
lea ecx, [edx + edi - 2]
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
jne 0x53476f
mov dword [esp + 0x34], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x534797
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x534797
mov edx, eax
imul edx, ecx
mov ecx, dword [esi + 0xc]
add edx, edi
imul edx, edx, 0x2c
lea ecx, [edx + ecx - 0x2c]
mov dword [esp + 0x38], ecx
test ecx, ecx
jne 0x53479f
mov dword [esp + 0x38], 0
cmp edi, eax
jae 0x5347ba
lea edx, [ebx - 2]
cmp edx, dword [esi + 8]
jae 0x5347ba
mov ecx, eax
imul ecx, edx
add ecx, edi
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
jne 0x5347bc
xor ecx, ecx
cmp ebp, eax
jae 0x5347dd
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x5347dd
mov ebp, eax
imul ebp, edx
lea edx, [edi + ebp - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
jne 0x5347e5
mov dword [esp + 0x20], 0
lea edx, [edi - 1]
cmp edx, eax
jae 0x53480d
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x53480d
mov ebp, eax
imul ebp, edx
mov edx, dword [esi + 0xc]
add ebp, edi
imul ebp, ebp, 0x2c
lea edx, [edx + ebp - 0x2c]
mov dword [esp + 0x24], edx
test edx, edx
jne 0x534815
mov dword [esp + 0x24], 0
cmp edi, eax
jae 0x534834
lea ebp, [ebx - 1]
cmp ebp, dword [esi + 8]
jae 0x534834
mov edx, eax
imul edx, ebp
add edx, edi
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [esp + 0x28], edx
jne 0x53483c
mov dword [esp + 0x28], 0
lea edx, [edi - 2]
cmp edx, eax
jae 0x53485d
cmp ebx, dword [esi + 8]
jae 0x53485d
mov edx, eax
imul edx, ebx
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [esp + 0x2c], edx
jne 0x534865
mov dword [esp + 0x2c], 0
lea edx, [edi - 1]
cmp edx, eax
jae 0x53488a
cmp ebx, dword [esi + 8]
jae 0x53488a
mov ebp, dword [esi + 0xc]
mov edx, eax
imul edx, ebx
add edx, edi
imul edx, edx, 0x2c
lea edx, [edx + ebp - 0x2c]
test edx, edx
je 0x53488a
mov ebp, edx
jmp 0x53488c
xor ebp, ebp
cmp edi, eax
jae 0x5348a6
cmp ebx, dword [esi + 8]
jae 0x5348a6
imul eax, ebx
add eax, edi
imul eax, eax, 0x2c
add eax, dword [esi + 0xc]
je 0x5348a6
mov ebx, eax
jmp 0x5348a8
xor ebx, ebx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x534a2e
mov eax, dword [esp + 0x38]
test eax, eax
je 0x534a2e
test ecx, ecx
je 0x534a2e
cmp dword [esp + 0x20], 0
je 0x534a2e
cmp dword [esp + 0x24], 0
je 0x534a2e
cmp dword [esp + 0x28], 0
je 0x534a2e
cmp dword [esp + 0x2c], 0
je 0x534a2e
test ebp, ebp
je 0x534a2e
test ebx, ebx
je 0x534a2e
cmp byte [edx + 0x1c], 1
je 0x5349dc
cmp byte [edx + 0x1d], 0
jne 0x5349dc
cmp byte [eax + 0x1c], 1
je 0x5349dc
cmp byte [eax + 0x1d], 0
jne 0x5349dc
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, dword [esp + 0x20]
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, dword [esp + 0x24]
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, dword [esp + 0x28]
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, dword [esp + 0x2c]
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, ebp
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov ecx, ebx
call fcn.0052eb30
test eax, eax
jne 0x5349dc
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
imul eax, ebp
mov ecx, dword [esi + 0x30]
add eax, ebx
imul eax, eax, 0x2c
xor edx, edx
mov word [eax + ecx + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebp
add eax, ebx
imul eax, eax, 0x2c
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx + 0x10]
push ebx
call eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul ecx, ebp
add ecx, ebx
imul ecx, ecx, 0x2c
mov eax, dword [ecx + edx]
add ecx, edx
mov edx, dword [eax + 0x18]
push ebp
call edx
jmp 0x534a32
mov eax, dword [esi + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
imul eax, ebx
mov ecx, dword [esi + 0x30]
add eax, ebp
imul eax, eax, 0x2c
mov edx, 1
mov word [eax + ecx + 0x1c], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, ebp
imul eax, eax, 0x2c
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [edx + 0x10]
push ebp
call eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
imul ecx, ebx
add ecx, ebp
imul ecx, ecx, 0x2c
mov eax, dword [ecx + edx]
add ecx, edx
mov edx, dword [eax + 0x18]
push ebx
call edx
mov ebx, dword [esp + 0x14]
inc ebx
add edi, 3
cmp ebx, dword [esi + 0x18]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
jb 0x534740
mov eax, dword [esp + 0x18]
inc eax
add ebx, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebx
cmp eax, dword [esi + 0x1c]
jb 0x534724
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4