Function at 0x1038d3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], edi
movzx eax, word [edi + 0x568]
mov word [esi + 0x9e8], ax
movzx eax, word [edi + 0x56a]
mov word [esi + 0x9ea], ax
movzx eax, word [edi + 0x56c]
mov word [esi + 0x9ec], ax
movzx eax, word [edi + 0x56e]
mov word [esi + 0x9ee], ax
mov eax, dword [edi + 0x570]
shl eax, 0x17
sar eax, 0x18
mov word [esi + 0x9f0], ax
mov eax, dword [edi + 0x570]
and eax, 1
mov byte [esi + 0x9f2], al
call fcn.103949d0
cmp dword [edi + 0x5b4], 0
je 0x1038d4ae
mov ecx, dword [esi + 0x3c48]
mov edx, 2
cmp ecx, 3
mov byte [esi + 0x6470], 1
mov eax, ecx
cmove eax, edx
cmove ecx, edx
movzx eax, byte [esi + eax*4 + 0x880]
mov byte [esi + 0x6471], al
mov byte [esi + 0x6466], dl
mov dword [esi + 0x868], edx
movzx eax, byte [edi + 0x5b4]
mov byte [esi + ecx + 0x641d], al
cmp dword [esi + 0x24c], 0
je 0x1038d4c4
cmp dword [esi + 0x64e8], 0
je 0x1038d548
mov eax, dword [esi + 0x250]
dec eax
and eax, 1
mov dword [esi + 0x250], eax
mov eax, dword [esi + eax*4 + 0xe0]
test eax, eax
je 0x1038d548
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.1033bbe0
mov ebx, eax
test ebx, ebx
je 0x1038d793
push dword [esi + 0x6458]
mov ecx, esi
push dword [esi + 0x908]
push dword [esi + 0x644c]
push ebx
call fcn.103e7bf0
push dword [esi + 0x6458]
lea eax, [ebx + 0x100]
mov ecx, esi
push dword [esi + 0x908]
push dword [esi + 0x644c]
push eax
call fcn.103e7bf0
mov ecx, dword [esi + 0x250]
mov ecx, dword [esi + ecx*4 + 0xe0]
call fcn.102ac650
mov ecx, dword [esi + 0x9ecc]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x218], edx
mov eax, dword [eax + 4]
mov ebx, dword [eax + ecx + 0x50]
mov eax, dword [eax + ecx + 0x4c]
mov ecx, dword [edi + 0x58c]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x20c], ecx
test ecx, ecx
je 0x1038d599
mov eax, dword [esi + 0x288]
imul eax, dword [esi + 0x284]
cmp dword [edi + 0x590], eax
jb 0x1038d599
mov edi, ecx
mov dword [ebp - 0x210], ecx
jmp 0x1038d5a1
xor edi, edi
mov dword [ebp - 0x210], edi
cmp byte [esi + 0x35e], 0
je 0x1038d772
cmp byte [esi + 0xa01], 3
jne 0x1038d603
test edi, edi
je 0x1038d603
cmp dword [esi + 0x280], 0
jne 0x1038d610
mov eax, dword [esi + 0x288]
mov ecx, dword [esi + 0x284]
mov edi, dword [esi + 0x24]
push 0
push 0
push 0
push dword [ebp - 0x21c]
mov edx, dword [edi]
push 0x100
push eax
push ecx
push 0
push ecx
push eax
push ecx
push dword [ebp - 0x218]
mov ecx, edi
push dword [ebp - 0x20c]
call dword [edx + 0x44]
jmp 0x1038d96a
cmp dword [esi + 0x280], 0
je 0x1038d96a
mov eax, dword [ebp - 0x220]
mov ecx, dword [esi + 0x224]
push 0
push dword [eax + 0x14]
call fcn.103f1830
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x218]
mov dword [ebp - 0x208], eax
call fcn.1033bbe0
add eax, dword [ebp - 0x21c]
cmp dword [esi + 0x288], 0
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], 0
jbe 0x1038d715
mov edi, eax
nop dword [eax]
mov eax, dword [esi + 0x284]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1038d6de
test edi, edi
jne 0x1038d691
call fcn.1043a2d6
mov dword [eax], 0x16
jmp 0x1038d6d9
cmp dword [ebp - 0x208], 0
je 0x1038d6b0
cmp ebx, eax
jb 0x1038d6b0
push eax
push dword [ebp - 0x208]
push edi
call fcn.10425d60
add esp, 0xc
jmp 0x1038d6de
push ebx
push 0
push edi
call fcn.10425c00
mov eax, dword [ebp - 0x208]
add esp, 0xc
test eax, eax
je 0x1038d684
cmp ebx, dword [ebp - 0x214]
jae 0x1038d6e4
call fcn.1043a2d6
mov dword [eax], 0x22
call fcn.1043a1d8
mov eax, dword [ebp - 0x208]
add eax, dword [esi + 0x284]
add edi, 0x100
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x20c]
inc eax
mov dword [ebp - 0x20c], eax
cmp eax, dword [esi + 0x288]
jb 0x1038d670
mov edi, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x218]
call fcn.102ac650
test edi, edi
je 0x1038d96a
mov ebx, dword [ebp - 0x21c]
mov eax, dword [esi + 0x288]
mov ecx, dword [esi + 0x284]
push ebx
push 0x100
push eax
mov edi, dword [esi + 0x24]
push ecx
push ebx
push 0x100
mov edx, dword [edi]
push eax
push ecx
push 0
push ecx
push eax
mov eax, dword [ebp - 0x218]
push ecx
push eax
push eax
mov eax, dword [ebp - 0x220]
mov ecx, edi
push dword [eax + 0x58c]
call dword [edx + 0x4c]
jmp 0x1038d96a
test edi, edi
je 0x1038d96a
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push edx
call fcn.1033bbe0
mov edi, eax
test edi, edi
jne 0x1038d7ab
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
add edi, dword [ebp - 0x21c]
cmp dword [esi + 0x280], 0
je 0x1038d8a4
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x210]
mov ecx, dword [esi + 0x224]
push dword [eax + 0x14]
call fcn.103f1830
cmp dword [esi + 0x288], 0
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 0
jbe 0x1038d95f
nop word [eax + eax]
mov eax, dword [esi + 0x284]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1038d86e
test edi, edi
jne 0x1038d821
call fcn.1043a2d6
mov dword [eax], 0x16
jmp 0x1038d869
cmp dword [ebp - 0x208], 0
je 0x1038d840
cmp ebx, eax
jb 0x1038d840
push eax
push dword [ebp - 0x208]
push edi
call fcn.10425d60
add esp, 0xc
jmp 0x1038d86e
push ebx
push 0
push edi
call fcn.10425c00
mov eax, dword [ebp - 0x208]
add esp, 0xc
test eax, eax
je 0x1038d814
cmp ebx, dword [ebp - 0x214]
jae 0x1038d874
call fcn.1043a2d6
mov dword [eax], 0x22
call fcn.1043a1d8
mov eax, dword [ebp - 0x208]
add eax, dword [esi + 0x284]
add edi, 0x100
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x20c]
inc eax
mov dword [ebp - 0x20c], eax
cmp eax, dword [esi + 0x288]
jb 0x1038d800
jmp 0x1038d95f
cmp dword [esi + 0x288], 0
mov dword [ebp - 0x20c], 0
jbe 0x1038d95f
nop dword [eax + eax]
mov eax, dword [esi + 0x284]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1038d92e
test edi, edi
jne 0x1038d8e1
call fcn.1043a2d6
mov dword [eax], 0x16
jmp 0x1038d929
cmp dword [ebp - 0x210], 0
je 0x1038d900
cmp ebx, eax
jb 0x1038d900
push eax
push dword [ebp - 0x210]
push edi
call fcn.10425d60
add esp, 0xc
jmp 0x1038d92e
push ebx
push 0
push edi
call fcn.10425c00
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x1038d8d4
cmp ebx, dword [ebp - 0x214]
jae 0x1038d934
call fcn.1043a2d6
mov dword [eax], 0x22
call fcn.1043a1d8
mov eax, dword [ebp - 0x210]
add eax, dword [esi + 0x284]
add edi, 0x100
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x20c]
inc eax
mov dword [ebp - 0x20c], eax
cmp eax, dword [esi + 0x288]
jb 0x1038d8c0
mov ecx, dword [ebp - 0x218]
call fcn.102ac650
cmp dword [esi + 0x86c], 4
jne 0x1038da80
mov ecx, dword [esi + 0x9e9c]
test ecx, ecx
jne 0x1038d98d
cmp dword [esi + 0x9e98], ecx
je 0x1038da40
mov eax, dword [esi + 0x9ecc]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x1038da40
lea eax, [ebp - 0x204]
test ecx, ecx
je 0x1038d9bf
push dword [esi + 0x24c]
push ecx
push 0x10462300
push eax
call fcn.100086a0
add esp, 0x10
jmp 0x1038d9d3
push dword [esi + 0x9e98]
push 0x1046b0a0
push eax
call fcn.100086a0
add esp, 0xc
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push edi
call fcn.1033bbe0
mov ebx, eax
test ebx, ebx
je 0x1038da40
lea eax, [ebp - 0x204]
push 0x10460a10
push eax
call fcn.10434f0b
mov esi, eax
add esp, 8
test esi, esi
je 0x1038da40
push 2
push 0
push esi
call fcn.1043fff8
push esi
call fcn.1044064b
push 0
push 0
push esi
mov dword [ebp - 0x20c], eax
call fcn.1043fff8
mov ecx, dword [edi + 0x74]
add esp, 0x1c
mov eax, dword [ecx + 0x24]
cmp dword [ebp - 0x20c], eax
jbe 0x1038da58
push esi
call fcn.10434d63
add esp, 4
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
push eax
push 0
push ebx
call fcn.10425c00
push esi
push dword [ebp - 0x20c]
push 1
push ebx
call fcn.1043fc63
push esi
call fcn.10434d63
add esp, 0x20
mov ecx, edi
call fcn.102ac650
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4