Function at 0x1004202c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.10031c10
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.10054b20
push 0x10182958
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.10064db2
push 0x800
lea eax, [ebp - 0x1028]
push ebx
push eax
call fcn.10054b20
push 0x1017fb84
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x10182968
push eax
call fcn.1003e472
add esp, 0x34
call fcn.1003db43
test al, al
je 0x100420cb
push esi
push edi
push esi
pop eax
push ecx
push ecx
push ebx
pop ecx
push ecx
pop edi
push edx
push edx
push eax
push esp
push eax
pop esp
pop edi
pop ebp
pop esp
pop edx
push ecx
push edi
push ebp
pop esi
pop esi
push eax
pop edx
pop ebp
pop ebx
pop ebx
xor ebx, ebx
call fcn.1003d7c2
test al, al
je 0x100420e6
push ebx
push ecx
push edx
push ebp
pop esi
pop esp
push eax
push eax
pop edi
push edx
push ecx
push eax
pop edx
push esp
push ebp
push edi
push esp
push esp
mov esi, 0x208
lea eax, [ebp - 0x824]
push esi
push ebx
push eax
call fcn.10054b20
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10054b20
add esp, 0x18
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [0x1017f140]
lea eax, [ebp - 0x20c]
push eax
call fcn.10064038
pop ecx
test eax, eax
je 0x100422f5
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10055a9d
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call dword [0x1017f2f8]
test eax, eax
je 0x100422f5
lea eax, [ebp - 0x20c]
push eax
call fcn.10064038
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.10064db2
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x1018297c
push eax
call fcn.1003e472
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.100228c0
push ebx
call fcn.1005c7be
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.100650a0
add esp, 0x40
mov esi, eax
call dword [0x1017f0ac]
test esi, esi
je 0x100422f5
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push 0x10182998
push eax
call fcn.10041e08
add esp, 0x28
call fcn.1003d9ea
test al, al
je 0x10042243
pop eax
push eax
push edi
push esi
push eax
pop esp
push ecx
push edx
pop esi
pop ecx
pop esp
pop edx
pop ecx
push ebp
push edx
push esi
pop edi
pop ebp
pop edi
pop eax
pop eax
push edi
pop esi
xor eax, eax
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call dword [0x1017f2f8]
xor edi, edi
inc edi
test eax, eax
lea eax, [ebp - 0x414]
push 0x10182990
push eax
cmovne ebx, edi
call fcn.10062ecd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100422f5
test ebx, ebx
jne 0x1004229b
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push edi
push eax
call fcn.1006486b
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.10064038
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push edi
push eax
call fcn.1006486b
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push edi
push eax
call fcn.1006486b
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push edi
push eax
call fcn.1006486b
push esi
call fcn.10062ccb
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret