Function at 0x409d81
Capabilities:
Read file on windows

Disassembly:
jmp 0x55d190
sub esp, 0xf0
mov eax, dword [esp + 0xf4]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ebx, ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55d91c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call edi
test eax, eax
je 0x55d210
cmp dword [esp + 0x18], 0x6111101
jne 0x55d210
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x55d210
mov edx, dword [esp + 0x10]
cmp edx, dword [0x7e2f84]
je 0x55d223
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xf0
ret 4
push 0
lea eax, [esp + 0x10]
push eax
push 0xe0
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
push esi
test eax, eax
je 0x55d211
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1dc
mov ecx, 0x7b4278
call fcn.0040ae39
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x55d277
mov eax, dword [esp + 0x24]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x55d277
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d29f
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x53b
mov ecx, 0x7b4278
call fcn.0040ae39
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x55d2d1
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 8]
and eax, 1
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
and eax, 1
mov dword [ebx + 0x20], eax
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d2f8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x1d4
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d330
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0060a450
cmp eax, 0x3d1
jne 0x55d367
fld dword [esi + 0x1c8]
call fcn.0060a450
cmp eax, 0xbb
jne 0x55d367
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0xd1
push 0x3d1
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d3ac
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d38f
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x58]
test al, 4
je 0x55d397
push 1
jmp 0x55d3a5
test al, 8
je 0x55d39f
push 2
jmp 0x55d3a5
test al, 0x10
je 0x55d3ac
push 3
mov ecx, esi
call fcn.0040d297
push 0xf1
mov ecx, 0x7b4278
call fcn.0040ae39
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov eax, dword [esp + 0x68]
je 0x55d3e5
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d3e5
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x68]
and eax, 2
push eax
mov ecx, esi
call fcn.004052b3
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d417
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0060a450
cmp eax, 0x1d0
jne 0x55d44a
fld dword [esi + 0x1c8]
call fcn.0060a450
cmp eax, 0x2d6
jne 0x55d44a
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
push 0x131
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d482
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d519
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d4ae
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x78]
test al, 4
je 0x55d4b6
push 1
jmp 0x55d4c4
test al, 8
je 0x55d4be
push 2
jmp 0x55d4c4
test al, 0x10
je 0x55d4cb
push 4
mov ecx, esi
call fcn.004050f6
mov ebp, dword [esp + 0x7c]
mov ecx, esi
call fcn.0040d814
movzx edi, al
cmp ebp, edi
je 0x55d506
lea ecx, [ecx]
push 0x40
mov ecx, esi
push 0
cmp ebp, edi
jle 0x55d4f7
push 0x13f
call fcn.0040309e
inc edi
jmp 0x55d502
push 0x140
call fcn.0040309e
dec edi
cmp edi, ebp
jne 0x55d4e0
test dword [esp + 0x78], 0x100
jne 0x55d519
push 0
mov ecx, esi
call fcn.00410c26
push 0x68a
mov ecx, 0x7b4278
call fcn.0040ae39
test eax, eax
je 0x55d546
cmp dword [ebx + 0x1c], 0
je 0x55d546
mov ecx, dword [esp + 0x78]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
push 0xf7
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
push edi
mov esi, eax
push ebp
lea eax, [esi + 0x200]
push eax
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d584
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d5d1
mov eax, dword [esp + 0x88]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d5b2
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x88]
test al, 4
je 0x55d5ba
push 1
jmp 0x55d5c8
test al, 8
je 0x55d5c2
push 2
jmp 0x55d5c8
test al, 0x10
je 0x55d5d1
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x60
mov ecx, 0x7b4278
call fcn.0040ae39
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x55d606
mov eax, dword [esp + 0x98]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d606
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d633
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0xcb
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d671
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d6eb
mov ecx, dword [esi + 0x224]
mov edx, dword [esp + 0xac]
mov dword [ecx + 0x2a8], edx
mov eax, dword [esp + 0xa8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d6b2
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xa8]
test al, 4
je 0x55d6eb
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [esp + 0xa8]
test al, 0x20
je 0x55d6d0
push 1
jmp 0x55d6de
test al, 0x40
je 0x55d6d8
push 2
jmp 0x55d6de
test al, al
jns 0x55d6eb
push 3
mov ecx, dword [0x7a41dc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x340
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d729
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d776
mov eax, dword [esp + 0xb8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d757
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xb8]
test al, 4
je 0x55d75f
push 1
jmp 0x55d76d
test al, 8
je 0x55d767
push 2
jmp 0x55d76d
test al, 0x10
je 0x55d776
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x5ca
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d7b4
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d7db
mov eax, dword [esp + 0xc8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d7db
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x563
mov ecx, 0x7b4278
call fcn.0040ae39
mov esi, eax
test esi, esi
je 0x55d844
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d81d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d844
mov eax, dword [esp + 0xd8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x55d844
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x20d
mov ecx, 0x7b4278
call fcn.0040ae39
mov edi, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.0040a899
test eax, eax
je 0x55d882
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x55d8bc
test byte [esp + 0xe8], 1
mov ecx, 0x7a4278
je 0x55d89b
push 0
jmp 0x55d89d
push 1
call fcn.0040c97d
test byte [esp + 0xec], 1
mov ecx, 0x7a4278
je 0x55d8b5
push 0
jmp 0x55d8b7
push 1
call fcn.0040f650
mov eax, dword [esp + 0xfc]
mov ebx, eax
mov ecx, 0x7b4278
test eax, eax
jne 0x55d8d5
push 0x747
jmp 0x55d8da
push 0x75a
call fcn.0040ae39
mov esi, eax
test esi, esi
je 0x55d91a
mov edi, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040a899
test eax, eax
je 0x55d914
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
mov dword [0x7c6300], ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xf0
ret 4