Function at 0x47202c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
cmp dword [edx], 0
mov bl, 1
je 0x472046
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 0x3c]
mov esi, edx
mov edi, ecx
lea edx, [ecx + 0x3c]
lea ebx, [ebp - 0x44]
mov ecx, ebx
mov eax, dword [eax]
mov dword [ebp - 0x38], edx
and eax, 0xe
mov dword [ebp - 0x34], eax
push eax
call fcn.0046ecae
add esp, 4
cmp byte [ebx], 4
jne 0x47220c
mov ecx, ebx
mov edx, edi
call fcn.00472254
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebx, dword [edi + 0x38]
lea edx, [edi + 0x6c]
mov dword [ebp - 0x20], edx
push edx
push 0
mov dword [ebp - 0x2c], ecx
push ecx
mov dword [ebp - 0x30], eax
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4720ab
mov cl, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x4720c5
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x472118
mov dword [ebp - 0x28], 0x3e5
mov dword [ebp - 0x24], 0
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [ecx], eax
push eax
push ecx
push dword [ebp - 0x20]
push ebx
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
je 0x4720f5
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 1
mov cl, 1
mov bl, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0
jmp 0x472144
call sub.kernel32.dll_GetLastError
mov edx, eax
cmp eax, 0x3e4
jne 0x47212f
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
call fcn.004c35f2
xor ecx, ecx
mov bl, 1
jmp 0x472144
mov edx, eax
lea eax, [ebp - 0x18]
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [eax - 4], 1
jmp 0x4721a0
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x472163
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], edx
movzx ecx, byte [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.004c35f2
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
test bl, bl
je 0x472199
mov ecx, esi
call fcn.004717e3
movsd xmm0, qword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov dword [esi], 1
mov dword [esi + 4], 0
mov bl, 1
movsd qword [esi + 8], xmm0
mov dword [esi + 0x10], eax
lock inc dword [edi + 0xa0]
jmp 0x47203c
test cl, cl
jne 0x4721b5
lea eax, [ebp - 0x18]
cmp edx, 0x218
jne 0x4721b5
push eax
call fcn.0045fe82
add esp, 4
xor ebx, ebx
jmp 0x4721ec
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, esi
call fcn.004717e3
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [esi], 3
mov dword [esi + 8], ebx
mov dword [esi + 4], edi
lea esi, [ebp - 0x54]
mov ecx, esi
or eax, 1
push eax
call fcn.0046ecae
add esp, 4
cmp byte [esi], 4
jne 0x472229
mov bl, 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x47203c
push dword [ebp - 0x30]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
jmp 0x47203c
movsd xmm0, qword [ebp - 0x44]
lea eax, [ebp - 0x1c]
mov ecx, 0x567da6
mov edx, 0x15
movsd qword [eax], xmm0
push 0x567dfc
jmp 0x472244
movsd xmm0, qword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov ecx, str.event_loop_still_seems_gone
mov edx, 0x1b
movsd qword [eax], xmm0
push 0x567e28
push 0x567d18
push eax
call fcn.00447310
add esp, 0xc
ud2