Function at 0x437d20
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 0x437d63
mov dword [ebp + 8], 1
test ecx, ecx
jne 0x437d6a
mov dword [ebp + 8], 0
test edx, edx
je 0x437d8b
test eax, 0x4000000
jne 0x437d8b
push dword [esi + 0x70]
call fcn.004482e0
add esp, 4
test eax, eax
je 0x437d8b
mov ebx, 1
jmp 0x437d8d
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x437da1
test edi, edi
je 0x437da1
mov edi, 1
jmp 0x437da3
xor edi, edi
call fcn.00429960
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 0x437de2
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x437de2
push dword [esi]
call eax
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4380d0
test ebx, ebx
jne 0x4380bf
test edi, edi
jne 0x4380ae
cmp dword [ebp - 0x10], edi
je 0x437f7b
test dword [esi + 0x58], 0x400
jne 0x437f7b
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.0043b230
add esp, 4
lea eax, [esi + 0x100]
push 0x4353e0
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.0053b400
add esp, 4
test eax, eax
jne 0x437eab
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x437e8e
call fcn.00541542
push 6
push 0x6d
push 0xe8
push 3
push dword [eax]
call fcn.00433ba0
add esp, 0x14
test eax, eax
je 0x4380e0
test edi, edi
jne 0x437f60
push 0x601860
call fcn.00429200
mov ecx, dword [esi + 0xbc]
add esp, 4
cmp esi, dword [0x601838]
jne 0x437ed6
mov dword [0x601838], ecx
jmp 0x437ee8
mov eax, dword [esi + 0xc0]
mov dword [eax + 0xbc], ecx
mov ecx, dword [0x601838]
mov edx, dword [esi + 0xbc]
test edx, edx
je 0x437f00
mov eax, dword [esi + 0xc0]
mov dword [edx + 0xc0], eax
jmp 0x437f10
test ecx, ecx
je 0x437f10
mov eax, dword [esi + 0xc0]
mov dword [ecx + 0xc0], eax
push 0x601860
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
call fcn.00429210
and dword [esi + 0x58], 0xfffffbff
lea ecx, [esi + 0xd4]
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x437f50
push esi
call fcn.00434b80
add esp, 4
or dword [esi + 0x58], 0x100000
push esi
call fcn.0043b2c0
add esp, 4
test dword [esi + 0x58], 0x4000000
je 0x437f76
cmp dword [ebp - 0x14], 0
je 0x437f76
mov edi, 1
jmp 0x437f78
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
nop
test ebx, ebx
jne 0x43803f
test edi, edi
jne 0x43803f
cmp dword [ebp + 0x10], edi
jl 0x437fb4
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 8], edx
ja 0x43803f
jb 0x437fac
cmp eax, dword [ebp - 0xc]
jae 0x43803f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
jmp 0x437fb7
or eax, 0xffffffff
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [esi + 0x58]
test eax, 0x200
je 0x437fd7
cmp dword [ebp - 0x10], 0
mov dword [ebp + 8], 1
jne 0x437fde
mov dword [ebp + 8], 0
cmp dword [ebp - 0x20], 0
je 0x438001
test eax, 0x4000000
jne 0x438001
push dword [esi + 0x70]
call fcn.004482e0
add esp, 4
test eax, eax
je 0x438001
mov ebx, 1
jmp 0x438003
xor ebx, ebx
test dword [esi + 0x58], 0x4000000
je 0x438019
cmp dword [ebp - 0x14], 0
je 0x438019
mov edi, 1
jmp 0x43801b
xor edi, edi
call fcn.00429960
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x437f80
mov eax, dword [ebp + 0xc]
mov edi, 1
mov ebx, edi
mov dword [eax], edi
jmp 0x43806d
test ecx, ecx
jne 0x438031
test ebx, ebx
jne 0x43805c
test edi, edi
je 0x43806b
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + 1]
neg edi
sbb edi, edi
and edi, 4
mov dword [eax], edi
jmp 0x43806d
mov eax, dword [ebp + 0xc]
mov edi, 2
mov dword [eax], edi
lea ebx, [edi - 1]
jmp 0x43806d
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x4380a5
test dword [esi + 0x58], 0x400
je 0x4380a5
push dword [esi + 0x60]
call fcn.00443880
add esp, 4
test dword [esi + 0x58], 0x400
je 0x4380a5
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 0xffffffffffffffff
push 0xffffffffffffffff
call edi
test dword [esi + 0x58], 0x400
jne 0x438096
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.00424790
int3