Function at 0x543d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5927c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x543ddc
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea ebx, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea edi, [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [edi]
imul edi, dword [ebx]
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.0056e108
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x543e61
push fcn.00542470
push 0x542440
push edi
mov dword [eax], edi
add eax, 4
push 0x2c
push eax
mov dword [ebp - 0x30], eax
call fcn.00570ecc
mov eax, dword [ebp - 0x30]
jmp 0x543e63
xor eax, eax
cmp dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [ebp - 0x18], 0
jbe 0x543eef
lea ebx, [ebx]
cmp dword [ebx], 0
mov dword [ebp - 0x14], 0
jbe 0x543ee3
lea esp, [esp]
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebx]
imul edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add edi, eax
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x543edb
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [ebp + 8]
mov word [edi + 0x1c], ax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx]
jb 0x543e90
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 8]
jb 0x543e80
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0xc]
mov ebx, dword [ebx]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ebx
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
mov dword [esi + 0x10], ebx
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0056e108
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x543f78
push fcn.00542470
push 0x542440
push edi
lea ebx, [eax + 4]
push 0x2c
push ebx
mov dword [eax], edi
call fcn.00570ecc
jmp 0x543f7a
xor ebx, ebx
cmp dword [esi + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x18], 0
jbe 0x5441de
mov dword [ebp - 0x10], 2
lea esp, [esp]
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x5441ca
mov edi, 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea ebx, [edi - 2]
push ebx
mov ecx, esi
call fcn.00543150
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
mov dword [ebp - 0x34], eax
push ecx
lea eax, [edi - 1]
push eax
mov ecx, esi
call fcn.00543150
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
push edi
call fcn.00543150
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push ebx
call fcn.00543150
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
lea eax, [edi - 1]
push eax
call fcn.00543150
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push edi
call fcn.00543150
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.00543150
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [edi - 1]
push eax
call fcn.00543150
push ebx
push edi
mov dword [ebp - 0x30], eax
call fcn.00543150
mov ebx, eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5441b7
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x5441b7
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x5441b7
cmp dword [ebp - 0x20], 0
je 0x5441b7
cmp dword [ebp - 0x24], 0
je 0x5441b7
cmp dword [ebp - 0x28], 0
je 0x5441b7
cmp dword [ebp - 0x2c], 0
je 0x5441b7
cmp dword [ebp - 0x30], 0
je 0x5441b7
test ebx, ebx
je 0x5441b7
cmp byte [eax + 0x1c], 1
je 0x54416b
cmp byte [eax + 0x1d], 0
jne 0x54416b
cmp byte [edx + 0x1c], 1
je 0x54416b
cmp byte [edx + 0x1d], 0
jne 0x54416b
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, dword [ebp - 0x20]
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, dword [ebp - 0x24]
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, dword [ebp - 0x28]
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, dword [ebp - 0x2c]
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, dword [ebp - 0x30]
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov ecx, ebx
call fcn.0053ead0
test eax, eax
jne 0x54416b
mov edx, dword [esi + 0x18]
imul edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 0x30]
add edx, ebx
imul edx, edx, 0x2c
xor ecx, ecx
mov word [edx + eax + 0x1c], cx
mov ecx, dword [esi + 0x18]
imul ecx, dword [ebp - 0x18]
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x18]
imul ecx, eax
add ecx, ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp 0x5441ba
mov ecx, dword [esi + 0x18]
mov ebx, dword [ebp - 0x18]
mov edx, dword [esi + 0x30]
imul ecx, ebx
add ecx, dword [ebp - 0x14]
mov eax, 1
imul ecx, ecx, 0x2c
mov word [ecx + edx + 0x1c], ax
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x14]
imul ecx, ebx
add ecx, eax
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, dword [ebp - 0x14]
push ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ebx, dword [ebp - 0x14]
inc ebx
add edi, 3
mov dword [ebp - 0x14], ebx
cmp ebx, dword [esi + 0x18]
jb 0x543fb6
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 3
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x1c]
jb 0x543fa0
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4