Function at 0x438c10
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x1c
cmp dword [ecx], 0xb0
push ebx
push ebp
push esi
push edi
je 0x438d74
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x438c3b
mov edx, dword [ecx + 0x10]
or edx, dword [ecx + 0x14]
je 0x438d74
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x50]
or eax, dword [edx + 0x54]
jne 0x438c5f
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x50], eax
mov eax, dword [ecx + 0x2c]
mov dword [edx + 0x54], eax
mov eax, dword [ecx + 0x30]
mov dword [edx + 0x58], eax
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x5c], eax
movzx edi, word [ecx + 0x20]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x14]
add edi, ecx
mov dword [esp + 0x28], eax
mov al, byte [edi]
mov dword [esp + 0x10], edi
test al, al
je 0x438d45
jmp 0x438c94
mov edi, dword [esp + 0x10]
movzx esi, al
xor ebx, ebx
xor ebp, ebp
and esi, 0xf
jbe 0x438cd2
movzx eax, byte [esi + edi]
push 0
cdq
push pe_nt_image_headers32
push ebp
mov ecx, edx
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.0043f6a0
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
sub esi, 1
mov ebx, ecx
mov ebp, eax
jne 0x438ca0
push edi
call fcn.00438a60
mov ecx, eax
and ecx, edx
mov esi, ebx
mov edi, ebp
cmp ecx, 0xffffffff
je 0x438cf9
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
adc dword [esp + 0x20], edx
mov edx, dword [esp + 0x20]
push edx
push eax
jmp 0x438cfd
push 0xffffffffffffffff
push 0xffffffffffffffff
add esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
adc edi, dword [esp + 0x30]
push ebp
push ebx
push edi
push esi
call fcn.00438ae0
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx]
mov edx, eax
and eax, 0xf
add eax, ecx
shr edx, 4
lea eax, [eax + edx + 1]
mov dword [esp + 0x10], eax
mov al, byte [eax]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
test al, al
jne 0x438c90
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x10]
inc eax
add dword [edx + 0x20], eax
cmp byte [esp + 0x38], 0
je 0x438d74
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 0x38]
mov dword [esp + 8], eax
jmp 0x438d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
sub esp, 0x40
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x44]
xor edx, edx
mov eax, edi
div dword [ecx + 0x40]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov ecx, eax
or ecx, esi
je 0x438f9c
xor ebx, ebx
push ebx
push edi
push esi
push eax
call fcn.0043f630
push edx
mov ebp, eax
push ebp
push ebx
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call fcn.0043f6a0
mov ecx, dword [esp + 0x58]
sub ecx, eax
sbb esi, edx
or ecx, esi
je 0x438df6
add ebp, 1
adc dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov edx, ebp
imul edx, edi
push edx
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x438f9c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x438f9c
mov ecx, dword [eax + 0x44]
mov esi, dword [ecx]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x28], ecx
lea esp, [esp]
mov ebx, dword [eax + 0x44]
mov eax, dword [eax + 0x30]
test ecx, ecx
je 0x438e3e
cmp ecx, eax
je 0x438e44
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, ebx
je 0x438f49
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test eax, eax
jne 0x438f27
call ebx
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x438e69
call ebx
xor ebp, ebp
cmp dword [esi + 0x1c], ebp
jb 0x438f01
ja 0x438e7f
cmp dword [esi + 0x18], ebp
jbe 0x438f01
xor eax, eax
xor edx, edx
xor ebx, ebx
add eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
adc edx, dword [esi + 0xc]
push ebx
push ecx
push edx
push eax
call fcn.0043f6a0
imul eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + 0xc]
push edi
push ecx
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x438f32
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x20], eax
or eax, ecx
mov dword [esp + 0x24], ecx
je 0x438f32
add dword [esp + 0x14], edi
inc ebp
mov eax, ebp
cdq
cmp edx, dword [esi + 0x1c]
jb 0x438e85
ja 0x438efb
cmp eax, dword [esi + 0x18]
jb 0x438e85
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x438f2e
call ebx
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x438f14
call ebx
mov esi, dword [esi]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x60]
jmp 0x438e30
mov eax, dword [eax]
jmp 0x438e62
mov eax, dword [eax]
jmp 0x438f0d
mov ecx, dword [esp + 0x10]
push ecx
call sub.mfc90u.dll_delete__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10
or ebp, dword [esp + 0x24]
jne 0x438f8f
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
lea edi, [eax + esi]
lea ecx, [esi + 0x1a]
cmp ecx, edi
ja 0x438f8f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x438f8f
test eax, eax
je 0x438f8f
cmp word [esi + 4], 0
je 0x438f8f
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
push edx
push esi
call fcn.004394d0
movzx eax, word [esi + 4]
add esi, eax
lea ecx, [esi + 0x1a]
cmp ecx, edi
jbe 0x438f61
mov edx, dword [esp + 0x10]
push edx
call sub.mfc90u.dll_delete__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10