Function at 0x42c762
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
push edi
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x1a0]
call fcn.0040d192
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x1bc], 0
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx], 0x447f88
mov edx, dword [ebp + 0xc]
and edx, 0xffff
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x120], edx
push 0
push 0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x99
push ecx
mov edx, dword [ebp - 0x1a0]
add edx, 0x18
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ba51
add esp, 0x14
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 4
test edx, edx
jne 0x42c852
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x1a0]
call fcn.0040cdde
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 8
test edx, edx
je 0x42c850
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
or ecx, 2
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x120], ecx
cmp dword [ebp - 0x84], 0
je 0x42c850
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
or ecx, 4
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x120], ecx
jmp 0x42c864
mov eax, dword [ebp - 0x1a0]
add eax, 0x18
push eax
call fcn.0040b700
add esp, 4
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 0x20
test edx, edx
je 0x42c889
mov eax, dword [ebp - 0x1a0]
mov byte [eax + 0x134], 0
jmp 0x42c94c
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 2
test edx, edx
je 0x42c8f9
mov eax, dword [ebp - 0x1a0]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x134
push ecx
call fcn.0041c899
add esp, 8
mov edx, dword [ebp - 0x1a0]
add edx, 0x134
push edx
call fcn.0040bc18
add esp, 4
push 0x180
push 0x8302
mov eax, dword [ebp - 0x1a0]
add eax, 0x134
push eax
call fcn.0042b247
add esp, 0xc
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x14], eax
jmp 0x42c94c
mov edx, dword [ebp - 0x1a0]
mov byte [edx + 0x134], 0
push 0
mov eax, dword [ebp - 0x1a0]
add eax, 0x99
push eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0040b8bd
add esp, 0x10
push 0
push 0x8000
lea eax, [ebp - 0x104]
push eax
call fcn.0042b247
add esp, 0xc
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0x14], 0
jge 0x42c980
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
and ecx, 0x20
test ecx, ecx
jne 0x42c980
call fcn.0040789b
mov edx, dword [ebp - 0x1a0]
mov eax, dword [eax]
mov dword [edx + 4], eax
jmp 0x42cc47
push 0x100
call fcn.00403197
add esp, 4
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ebp - 0x194]
mov dword [ecx + 0x124], edx
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
and ecx, 4
test ecx, ecx
je 0x42ca6f
push 0x100
push 0
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x124]
push eax
call fcn.004077d0
add esp, 0xc
mov ecx, dword [ebp - 0x1a0]
mov edi, dword [ecx + 0x124]
mov ecx, 0x11
mov esi, str.Zinc_Data_File_Version_4.0
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x124]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x1a0]
call fcn.004279fb
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x124]
mov word [edx + 0x52], 0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x124]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x120]
and eax, 0x20
test eax, eax
jne 0x42ca6a
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 0x10
test edx, edx
jne 0x42ca6a
mov ecx, dword [ebp - 0x1a0]
call fcn.0042d081
test eax, eax
jge 0x42ca6a
jmp 0x42cc47
jmp 0x42cb75
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
and ecx, 2
test ecx, ecx
je 0x42cb75
push 0
mov edx, dword [ebp - 0x1a0]
add edx, 0x99
push edx
mov eax, dword [ebp - 0x1a0]
add eax, 0x18
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.0040b8bd
add esp, 0x10
push 0
push 0x8000
lea edx, [ebp - 0x184]
push edx
call fcn.0042b247
add esp, 0xc
mov dword [ebp - 0x190], eax
push 0x1000
call fcn.00403197
add esp, 4
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x188], eax
push 0
push 0
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x14]
push edx
call fcn.0040809e
add esp, 0xc
push 0x1000
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
call fcn.00443d5c
add esp, 0xc
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jle 0x42cb4b
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00407ea5
add esp, 0xc
jmp 0x42caff
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
push ecx
call fcn.004031a5
add esp, 4
mov edx, dword [ebp - 0x190]
push edx
call fcn.004081ba
add esp, 4
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x120]
and ecx, 0x20
test ecx, ecx
jne 0x42cbc3
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x120]
and eax, 0x10
test eax, eax
jne 0x42cbc3
push 0x100
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x124]
push edx
push 0
mov ecx, dword [ebp - 0x1a0]
call fcn.0040c30b
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x1a0]
call fcn.0040cee7
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 4], 0
je 0x42cbdc
jmp 0x42cc47
mov ecx, dword [ebp - 0x1a0]
call fcn.0040cf86
mov eax, dword [ebp - 0x1a0]
cmp dword [eax + 4], 0
je 0x42cbf5
jmp 0x42cc47
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x120]
and edx, 4
test edx, edx
je 0x42cc21
mov eax, dword [0x44f1fc]
push eax
mov ecx, dword [ebp - 0x1a0]
call fcn.0042d9ad
test eax, eax
jge 0x42cc1f
jmp 0x42cc47
jmp 0x42cc3a
mov ecx, dword [ebp - 0x1a0]
call fcn.0040d0ff
mov ecx, dword [ebp - 0x1a0]
cmp dword [ecx + 4], 0
je 0x42cc3a
jmp 0x42cc47
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8