Function at 0x438b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call fcn.0049c93f
lea eax, [esp + 0x54]
push 8
push eax
push ebx
call fcn.00498088
add esp, 0x18
cmp word [esp + 0x48], 0xd0c5
jne 0x438baf
cmp word [esp + 0x4a], 0xc6d3
jne 0x438bb8
push edi
push 0x14
push ebx
call fcn.0049c93f
lea ecx, [esp + 0x4c]
push 8
push ecx
push ebx
call fcn.00498088
mov esi, dword [esp + 0x58]
push edi
push esi
push ebx
call fcn.0049c93f
lea edx, [esp + 0x6c]
push 8
push edx
push ebx
call fcn.00498088
add esp, 0x30
cmp word [esp + 0x48], 0x4949
je 0x438bca
mov ecx, dword [esp + 0x4c]
mov edi, 1
call fcn.00438af0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
push 0
add eax, esi
push eax
push ebx
call fcn.0049c93f
lea ecx, [esp + 0x1c]
push 2
push ecx
push ebx
call fcn.00498088
add esp, 0x18
test edi, edi
je 0x438c01
mov ecx, dword [esp + 0x10]
call fcn.00438ad0
and eax, 0xffff
mov dword [esp + 0x10], eax
jmp 0x438c05
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x2c], 0
jle 0x438c61
lea edx, [esp + 0x7c]
push 0xc
push edx
push ebx
call fcn.00498088
add esp, 0xc
cmp edi, 1
jne 0x438c47
mov ecx, dword [esp + 0x7c]
call fcn.00438ad0
mov ecx, dword [esp + 0x84]
mov word [esp + 0x7c], ax
call fcn.00438af0
mov dword [esp + 0x84], eax
cmp word [esp + 0x7c], 0x8649
je 0x438c6a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x438c11
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x84]
push 0
add eax, esi
push eax
push ebx
call fcn.0049c93f
lea ecx, [esp + 0x90]
push 4
push ecx
push ebx
call fcn.00498088
mov eax, dword [esp + 0x9c]
add esp, 0x18
cmp eax, 0x4d494238
jne 0x438c61
xor edi, edi
lea edx, [esp + 0x28]
push 2
push edx
push ebx
call fcn.00498088
mov ecx, dword [esp + 0x34]
add esp, 0xc
call fcn.00438ad0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push 1
push eax
push ebx
call fcn.00498088
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
and ecx, 0xff
inc ecx
push ecx
push edx
call fcn.00497980
mov esi, eax
mov eax, dword [esp + 0x2c]
and eax, 0xff
mov dword [esp + 0x38], esi
inc eax
push eax
push esi
push ebx
call fcn.00498088
lea ecx, [esp + 0x34]
push 4
push ecx
push ebx
call fcn.00498088
mov ecx, dword [esp + 0x40]
add esp, 0x2c
call fcn.00438af0
mov edx, eax
mov dword [esp + 0x14], eax
and edx, 0x80000001
jns 0x438d23
dec edx
or edx, 0xfffffffe
inc edx
je 0x438d2a
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
cmp cx, 0x7d0
jb 0x438dab
cmp cx, 0xbb6
ja 0x438dab
mov ecx, dword [esp + 0x20]
lea eax, [edi + 0x108]
push eax
push ecx
call fcn.00497980
mov edx, dword [esp + 0x2c]
add esp, 8
lea esi, [edi + eax]
mov dword [esp + 0x20], eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call fcn.004a4759
mov dword [esi + 0x100], eax
mov ecx, dword [esp + 0x18]
mov eax, 0x4ec4ec4f
push 1
imul ecx
mov ecx, dword [esp + 0x24]
add edi, 0x108
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
inc ecx
mov dword [esi + 0x104], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call fcn.0049c93f
add esp, 0x10
jmp 0x438dbe
cmp cx, 0xbb7
push 1
je 0x438dec
push eax
push ebx
call fcn.0049c93f
add esp, 0xc
lea edx, [esp + 0x84]
push 4
push edx
push ebx
call fcn.00498088
mov eax, dword [esp + 0x90]
add esp, 0xc
cmp eax, 0x4d494238
je 0x438c9f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00498088
mov ecx, dword [esp + 0x24]
and ecx, 0xff
inc ecx
push ecx
push esi
call fcn.00497980
mov edx, dword [esp + 0x2c]
mov esi, eax
and edx, 0xff
mov dword [esp + 0x38], esi
inc edx
push edx
push esi
push ebx
call fcn.00498088
mov eax, dword [esp + 0x3c]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x438c61
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x438e6b
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc edi
add ecx, 0x108
cmp edi, eax
mov dword [esp + 0x2c], ecx
jl 0x438e3b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, dword [esp + 0x1c]
jge 0x438c61
mov eax, dword [esp + 0x20]
mov edx, edi
shl edx, 5
add edx, edi
push 0
mov ecx, dword [eax + edx*8 + 0x100]
lea esi, [eax + edx*8]
push ecx
push ebx
mov dword [esp + 0x48], esi
call fcn.0049c93f
mov edx, dword [esi + 0x104]
lea esi, [edx*4 - 4]
lea eax, [esi*8]
push eax
call fcn.004970a0
mov edi, dword [ebp + 0xc]
push esi
mov dword [edi], eax
call fcn.004970a0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
add esp, 0x14
xor esi, esi
mov dword [ecx], eax
xor eax, eax
cmp dword [edx + 0x104], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
jle 0x4390a0
lea eax, [esp + 0x2c]
push 2
push eax
push ebx
call fcn.00498088
mov ecx, dword [esp + 0x38]
add esp, 0xc
call fcn.00438ad0
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
lea eax, [esi*8]
push 0x18
add eax, ecx
push eax
push ebx
call fcn.00498088
mov eax, dword [esp + 0x38]
add esp, 0xc
and eax, 0xffff
cmp eax, 5
ja case.default.0x438f26
jmp dword [eax*4 + 0x43910c]
test esi, esi
mov dword [esp + 0x34], 1
je 0x438f8d
mov eax, dword [ebp + 0x10]
inc esi
inc esi
mov ecx, dword [eax]
inc esi
mov byte [ecx + esi - 1], 4
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov byte [edx + esi - 2], 4
mov eax, dword [eax]
mov byte [eax + esi - 3], 4
mov eax, dword [edi]
mov edx, dword [eax + ecx*8]
mov dword [eax + esi*8 - 0x18], edx
mov edx, dword [eax + ecx*8 + 4]
mov dword [eax + esi*8 - 0x14], edx
mov eax, dword [edi]
mov edx, dword [eax + ecx*8 + 8]
mov dword [eax + esi*8 - 0x10], edx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [eax + esi*8 - 0xc], edx
mov eax, dword [edi]
mov edx, dword [eax + ecx*8 + 0x10]
mov dword [eax + esi*8 - 8], edx
mov ecx, dword [eax + ecx*8 + 0x14]
mov dword [eax + esi*8 - 4], ecx
mov edx, dword [ebp + 0x10]
inc esi
mov dword [esp + 0x1c], esi
mov eax, dword [edx]
mov byte [eax + esi - 1], 6
jmp case.default.0x438f26
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
sub ecx, edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x30], ecx
mov eax, dword [ebp + 0x18]
fild dword [esp + 0x30]
sub edx, eax
mov dword [esp + 0x30], edx
fstp qword [esp + 0x50]
fild dword [ebp + 0x14]
fstp qword [esp + 0x58]
fild dword [esp + 0x30]
mov dword [esp + 0x30], 3
fstp qword [esp + 0x60]
fild dword [ebp + 0x18]
fstp qword [esp + 0x70]
mov eax, dword [edi]
mov ecx, dword [eax + esi*8]
call fcn.00438af0
shl eax, 3
mov ecx, dword [edi]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov ecx, dword [ecx + esi*8 + 4]
fmul qword [0x4bdd30]
fstp qword [esp + 0x68]
call fcn.00438af0
shl eax, 3
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul qword [0x4bdd30]
fld qword [esp + 0x50]
fmul st(1)
fadd qword [esp + 0x58]
call fcn.00496fa4
fstp st(0)
fld qword [esp + 0x60]
fmul qword [esp + 0x68]
mov edx, dword [edi]
fadd qword [esp + 0x70]
mov dword [edx + esi*8], eax
call fcn.00496fa4
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
mov dword [ecx + esi*8 + 4], eax
mov eax, dword [edx]
mov byte [eax + esi], 4
mov eax, dword [esp + 0x30]
inc esi
dec eax
mov dword [esp + 0x30], eax
jne 0x438fdf
mov eax, dword [esp + 0x34]
test eax, eax
je case.default.0x438f26
mov eax, dword [edi]
mov dword [esp + 0x34], 0
mov ecx, dword [eax + esi*8 - 0x10]
mov dword [eax + esi*8 - 0x20], ecx
mov edx, dword [eax + esi*8 - 0xc]
mov dword [eax + esi*8 - 0x1c], edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
inc eax
mov edx, dword [ecx + 0x104]
mov dword [esp + 0x38], eax
cmp eax, edx
jl 0x438ee0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
inc esi
mov byte [edx + esi + 1], 4
mov edx, dword [ecx]
mov byte [edx + esi], 4
mov ecx, dword [ecx]
mov byte [ecx + esi - 1], 4
mov ecx, dword [edi]
inc esi
mov edx, dword [ecx + eax*8]
mov dword [ecx + esi*8 - 0x10], edx
mov edx, dword [ecx + eax*8 + 4]
mov dword [ecx + esi*8 - 0xc], edx
mov ecx, dword [edi]
mov edx, dword [ecx + eax*8 + 8]
mov dword [ecx + esi*8 - 8], edx
mov edx, dword [ecx + eax*8 + 0xc]
mov dword [ecx + esi*8 - 4], edx
mov edi, dword [edi]
mov ecx, dword [edi + eax*8 + 0x10]
mov dword [edi + esi*8], ecx
mov edx, dword [edi + eax*8 + 0x14]
mov eax, dword [esp + 0x20]
mov dword [edi + esi*8 + 4], edx
push eax
call fcn.00496fcb
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00496fcb
add esp, 8
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret