Function at 0x40d5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5127de
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, dword [esi + 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x44c], 0x544088
movsd qword [ebp - 0x428], xmm0
mov dword [ebp - 0x41c], 0x7d1
test ecx, ecx
jne 0x40d634
call fcn.00430251
mov eax, dword [ecx]
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x428]
push edx
lea edx, [ebp - 0x41c]
push edx
call dword [eax + 8]
cmp dword [esi + 0x38], 0
jne 0x40d69e
movsd xmm0, qword [0x548468]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x44c], 0x544088
movsd qword [ebp - 0x428], xmm0
mov dword [ebp - 0x41c], 0x7d4
test ecx, ecx
jne 0x40d684
call fcn.00430251
mov eax, dword [ecx]
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x428]
push edx
lea edx, [ebp - 0x41c]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0x544088
movsd qword [ebp - 0x428], xmm0
mov dword [ebp - 0x41c], 0x7d2
test ecx, ecx
jne 0x40d6c9
call fcn.00430251
mov eax, dword [ecx]
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x428]
push edx
lea edx, [ebp - 0x41c]
push edx
call dword [eax + 8]
push 0x1248
mov dword [ebp - 4], 0
call fcn.004d1637
mov edi, eax
add esp, 4
mov dword [ebp - 0x450], edi
push 0x1248
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00444b40
lea ebx, [esi + 0x58]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x40d71e
mov ebx, dword [ebx]
push 0x1000
push 0
push edi
call fcn.00444b40
add esp, 0xc
lea eax, [edi + 0x1000]
push 0x208
push 0
push eax
call fcn.00444b40
add esp, 4
lea ecx, [edi + 0x1208]
call fcn.00426b10
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1218]
call fcn.00426b10
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [edi + 0x1228]
call fcn.00426b10
sub esp, 8
mov byte [ebp - 4], 4
push ebx
push ecx
mov ecx, edi
call fcn.00423770
lea eax, [ebp - 0x41c]
mov dword [esi + 0x80], edi
mov dword [ebp - 4], 0xffffffff
mov ebx, 1
push eax
push dword [edi + 0x1238]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call edi
cmp dword [ebp - 0x41c], 0x103
jne 0x40d95d
nop word [eax + eax]
cmp byte [esi + 0x78], 0
jne 0x40d91c
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00444b40
mov eax, dword [esi + 0x80]
lea ecx, [ebp - 0x44c]
add esp, 0xc
mov dword [ebp - 0x44c], 0xffffffff
push 0
push ecx
push 0x400
lea ecx, [ebp - 0x418]
push ecx
push dword [eax + 0x121c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x44c]
test eax, eax
mov eax, 0xffffffff
cmovne ecx, eax
test ecx, ecx
je 0x40d91c
cmp byte [ebp - 0x418], 0
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
jne 0x40d851
xor ecx, ecx
jmp 0x40d869
lea ecx, [ebp - 0x418]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d860
sub ecx, edx
push ecx
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x468]
call fcn.00409fd0
mov dword [ebp - 4], 6
lea edx, [ebp - 0x468]
push dword [esi + 0x74]
lea ecx, [ebp - 0x440]
call fcn.00424010
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x40d8bc
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00409eb0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov ecx, esi
mov dword [ebp - 0x454], 0xf
cmovae eax, dword [ebp - 0x440]
push eax
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
call fcn.0040bfa0
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x42c]
jne 0x40d943
cmp eax, 8
jb 0x40d91c
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00403a50
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [esi + 0x80]
push dword [eax + 0x1238]
call edi
cmp dword [ebp - 0x41c], 0x103
je 0x40d7c0
jmp 0x40d95d
xor ebx, ebx
cmp eax, 8
jb 0x40d95d
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00403a50
mov eax, dword [esi + 0x80]
push 0xffffffffffffffff
push dword [eax + 0x1238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x80]
mov dword [esi + 0x80], 0
test edi, edi
je 0x40d99a
mov ecx, edi
call fcn.004236f0
push 0x1248
push edi
call fcn.004d1b2d
add esp, 8
test ebx, ebx
je 0x40da45
movsd xmm0, qword [0x548468]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x450], 0x544088
movsd qword [ebp - 0x448], xmm0
mov dword [ebp - 0x420], 0x7d3
test ecx, ecx
jne 0x40d9d2
call fcn.00430251
lea edx, [ebp - 0x450]
push edx
lea edx, [ebp - 0x448]
push edx
lea edx, [ebp - 0x420]
jmp 0x40da3f
mov eax, dword [ecx]
push edx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret