Function at 0x437c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax]
mov ecx, edi
mov edx, edi
mov dword [ebp - 0x18], 0
mov eax, dword [esi + 0x58]
and ecx, 1
and edx, 2
mov dword [ebp - 0x10], ecx
and edi, 4
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edi
test eax, 0x200
je 0x437ca3
mov dword [ebp + 8], 1
test ecx, ecx
jne 0x437caa
mov dword [ebp + 8], 0
test edx, edx
je 0x437ccb
test eax, 0x4000000
jne 0x437ccb
push dword [esi + 0x70]
call fcn.00448230
add esp, 4
test eax, eax
je 0x437ccb
mov ebx, 1
jmp 0x437ccd
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x437ce1
test edi, edi
je 0x437ce1
mov edi, 1
jmp 0x437ce3
xor edi, edi
call fcn.004298d0
mov ecx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
cdq
add eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
adc edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, dword [0x5ed8f8]
test eax, eax
je 0x437d22
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x437d22
push dword [esi]
call eax
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x438010
test ebx, ebx
jne 0x437fff
test edi, edi
jne 0x437fee
cmp dword [ebp - 0x10], edi
je 0x437ebb
test dword [esi + 0x58], 0x400
jne 0x437ebb
mov eax, dword [esi + 0xe0]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 1
movups xmmword [eax], xmm0
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0xe0]
mov dword [eax + 0x10], esi
lea eax, [esi + 0xd4]
lock inc dword [eax]
or dword [esi + 0x58], 0x400
push esi
call fcn.0043b180
add esp, 4
lea eax, [esi + 0x100]
push 0x435320
push dword [esi + 0xe0]
push 1
push eax
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov edi, eax
push edi
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x437deb
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x437dce
call fcn.005414b2
push 6
push 0x6d
push 0xe8
push 3
push dword [eax]
call fcn.00433ae0
add esp, 0x14
test eax, eax
je 0x438020
test edi, edi
jne 0x437ea0
push 0x601860
call fcn.00429170
mov ecx, dword [esi + 0xbc]
add esp, 4
cmp esi, dword [0x601838]
jne 0x437e16
mov dword [0x601838], ecx
jmp 0x437e28
mov eax, dword [esi + 0xc0]
mov dword [eax + 0xbc], ecx
mov ecx, dword [0x601838]
mov edx, dword [esi + 0xbc]
test edx, edx
je 0x437e40
mov eax, dword [esi + 0xc0]
mov dword [edx + 0xc0], eax
jmp 0x437e50
test ecx, ecx
je 0x437e50
mov eax, dword [esi + 0xc0]
mov dword [ecx + 0xc0], eax
push 0x601860
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
call fcn.00429180
and dword [esi + 0x58], 0xfffffbff
lea ecx, [esi + 0xd4]
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x437e90
push esi
call fcn.00434ac0
add esp, 4
or dword [esi + 0x58], 0x100000
push esi
call fcn.0043b210
add esp, 4
test dword [esi + 0x58], 0x4000000
je 0x437eb6
cmp dword [ebp - 0x14], 0
je 0x437eb6
mov edi, 1
jmp 0x437eb8
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
nop
test ebx, ebx
jne 0x437f7f
test edi, edi
jne 0x437f7f
cmp dword [ebp + 0x10], edi
jl 0x437ef4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 8], edx
ja 0x437f7f
jb 0x437eec
cmp eax, dword [ebp - 0xc]
jae 0x437f7f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
jmp 0x437ef7
or eax, 0xffffffff
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [esi + 0x58]
test eax, 0x200
je 0x437f17
cmp dword [ebp - 0x10], 0
mov dword [ebp + 8], 1
jne 0x437f1e
mov dword [ebp + 8], 0
cmp dword [ebp - 0x20], 0
je 0x437f41
test eax, 0x4000000
jne 0x437f41
push dword [esi + 0x70]
call fcn.00448230
add esp, 4
test eax, eax
je 0x437f41
mov ebx, 1
jmp 0x437f43
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x437f59
cmp dword [ebp - 0x14], 0
je 0x437f59
mov edi, 1
jmp 0x437f5b
xor edi, edi
call fcn.004298d0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x437ec0
mov eax, dword [ebp + 0xc]
mov edi, 1
mov ebx, edi
mov dword [eax], edi
jmp 0x437fad
test ecx, ecx
jne 0x437f71
test ebx, ebx
jne 0x437f9c
test edi, edi
je 0x437fab
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + 1]
neg edi
sbb edi, edi
and edi, 4
mov dword [eax], edi
jmp 0x437fad
mov eax, dword [ebp + 0xc]
mov edi, 2
mov dword [eax], edi
lea ebx, [edi - 1]
jmp 0x437fad
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x437fe5
test dword [esi + 0x58], 0x400
je 0x437fe5
push dword [esi + 0x60]
call fcn.004437d0
add esp, 4
test dword [esi + 0x58], 0x400
je 0x437fe5
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 0xffffffffffffffff
push 0xffffffffffffffff
call edi
test dword [esi + 0x58], 0x400
jne 0x437fd6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
shl edi, 2
mov eax, 1
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 2
mov dword [edx], edi
lea eax, [edi - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [edx], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.cant_read_from_handle:__m
push 0x360000
call fcn.00424700
int3