Function at 0x426940
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x482071
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4ad980]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
mov ebx, ecx
mov esi, edx
push 0x490a58
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
mov byte [esp + 0x1f], 1
call fcn.00465096
xor edi, edi
add esp, 8
mov dword [esp + 0x2c], eax
cmp eax, edi
jne 0x4269eb
cmp ebp, edi
je 0x4269e4
lea esi, [esp + 0x18]
call fcn.00427aa0
mov dword [esp + 0x134], edi
push eax
mov ecx, ebp
call fcn.00406530
mov dword [esp + 0x134], 0xffffffff
mov ecx, esi
call fcn.004065d0
xor al, al
jmp 0x426bcf
cmp esi, edi
je 0x4269f7
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
jmp 0x4269fb
mov dword [esp + 0x18], edi
xor eax, eax
xor edx, edx
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov eax, dword [ebx]
mov word [esp + 0x38], dx
mov edi, dword [eax - 0xc]
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
cmp edi, esi
je 0x426b30
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
mov dword [ecx], eax
lea eax, [esp + 0x28]
push eax
mov ebp, 0xfde9
call fcn.004273f0
add esp, 8
mov dword [esp + 0x134], 1
mov ecx, dword [esp + 0x24]
cmp dword [ecx - 0xc], esi
je 0x426a88
push 5
mov eax, 0x494f34
call fcn.00426570
add esp, 4
test eax, eax
je 0x426a88
xor ebp, ebp
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push edi
push eax
push 0
push ebp
call dword [0x485398]
mov esi, eax
lea ebx, [esi + 1]
push ebx
call fcn.00444919
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
add esp, 4
mov edi, eax
mov eax, esi
neg eax
sbb eax, eax
and eax, ebx
mov edx, ebp
sub edx, 0xfde9
neg edx
sbb edx, edx
lea ebx, [esp + 0x20]
and edx, ebx
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
push ecx
push 0
push ebp
mov dword [esp + 0x40], 0
call dword [0x485398]
mov ecx, dword [esp + 0x2c]
push ecx
push 1
push esi
push edi
call fcn.00465262
cmp eax, 1
push edi
sete bl
call fcn.00444924
add esp, 0x14
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004065d0
cmp dword [esp + 0x20], 0
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
je 0x426b34
mov eax, 0x494f78
jmp 0x426b39
mov bl, byte [esp + 0x17]
mov eax, 0x48d76c
push eax
push esi
lea edx, [esp + 0x40]
push edx
push edi
push 0x494fb4
lea edx, [esp + 0x74]
call fcn.004119c0
add esp, 0x14
test ebp, ebp
je 0x426b7c
lea eax, [esp + 0x60]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426b60
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, ebp
call fcn.00406920
test bl, bl
jne 0x426bb2
test ebp, ebp
je 0x426bb2
lea esi, [esp + 0x28]
call fcn.00427aa0
mov dword [esp + 0x134], 2
push eax
mov ecx, ebp
call fcn.00406530
mov dword [esp + 0x134], 0xffffffff
mov ecx, esi
call fcn.004065d0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0046535b
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x426bcd
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov al, bl
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004644a2
add esp, 0x124
ret