Function at 0x422820
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4733c0
mov eax, dword fs:[0]
push eax
mov eax, 0x10518
call fcn.00444350
mov eax, dword [0x492afc]
xor eax, esp
mov dword [esp + 0x10514], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492afc]
xor eax, esp
push eax
lea eax, [esp + 0x1052c]
mov dword fs:[0], eax
xor eax, eax
xor ecx, ecx
push 0x18e
push ecx
lea edx, [esp + 0x19a]
mov ebx, 1
push edx
mov dword [esp + 0x10540], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
mov word [esp + 0x19c], cx
call fcn.00443d20
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0xde]
push ecx
mov word [esp + 0xe0], ax
call fcn.00443d20
xor eax, 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 [esp + 0x10558]
xor edx, edx
add esp, 0x18
mov word [esp + 0x34], dx
test eax, eax
je 0x4228f1
mov eax, dword [eax]
jmp 0x4228f3
xor eax, eax
push 0xa
lea ecx, [esp + 0x38]
push ecx
push 0x64
lea edx, [esp + 0xd4]
push edx
push 0xc8
lea ecx, [esp + 0x1a4]
push ecx
push 0xa
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00442682
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x34e]
push ecx
mov word [esp + 0x350], ax
call fcn.00443d20
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x354]
push 0x104
push eax
call fcn.00444105
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0x360]
push 0x104
push edx
call fcn.00442acd
add esp, 0x48
push 0
lea eax, [esp + 0x324]
push eax
push 0
call dword [0x478400]
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [0x478634]
push 0x80
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.00443d20
add esp, 0xc
call dword [0x47864c]
push eax
lea eax, [esp + 0x4c]
push 0x479a14
push eax
call fcn.0044626e
add esp, 0xc
test byte [esp + 0x1c], 4
push 0
push 0
push 0
jne 0x4229d1
push 4
lea ecx, [esp + 0x58]
push ecx
jmp 0x4229d8
push 0
lea edx, [esp + 0x58]
push edx
call dword [0x478644]
mov edi, eax
test edi, edi
je 0x422b85
mov esi, dword [0x478630]
push 4
lea eax, [esp + 0x18]
push eax
push 2
push edi
mov dword [esp + 0x24], 0x2710
call esi
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push edi
mov dword [esp + 0x24], ebx
call esi
push 4
lea edx, [esp + 0x18]
push edx
push 4
push edi
mov dword [esp + 0x24], 0x3e8
call esi
mov eax, dword [esp + 0x1053c]
test eax, eax
je 0x422a35
mov eax, dword [eax]
jmp 0x422a37
xor eax, eax
push 0
push 0x84000100
push 0
push 0
push eax
push edi
call dword [0x478640]
mov ebp, eax
test ebp, ebp
je 0x422b85
push 0xfffe
lea eax, [esp + 0x52d]
push 0
push eax
mov byte [esp + 0x534], 0
call fcn.00443d20
mov eax, dword [esp + 0x1054c]
add esp, 0xc
mov dword [esp + 0x18], 0
test eax, eax
je 0x422a9d
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x422a99
mov ecx, dword [eax]
push ecx
call fcn.00414240
mov dword [esi], eax
mov esi, dword [esi]
jmp 0x422a9f
xor esi, esi
push 0x479420
push esi
call fcn.0044432b
mov esi, eax
add esp, 8
test esi, esi
je 0x422b85
mov ebx, dword [0x478638]
lea ecx, [ecx]
lea edx, [esp + 0x18]
push edx
push 0xffff
lea eax, [esp + 0x530]
push eax
push ebp
call ebx
push esi
test eax, eax
je 0x422b7d
mov eax, dword [esp + 0x1c]
cmp eax, 0xffff
ja 0x422b7d
push eax
lea ecx, [esp + 0x530]
push 1
push ecx
call fcn.00445a4d
push 0xffff
lea edx, [esp + 0x53c]
push 0
push edx
call fcn.00443d20
add esp, 0x1c
cmp dword [esp + 0x18], 0
jne 0x422ac0
push esi
call fcn.004441eb
mov esi, dword [0x47863c]
add esp, 4
push ebp
call esi
test eax, eax
je 0x422b85
push edi
call esi
lea ecx, [esp + 0x1053c]
test eax, eax
je 0x422b8c
call fcn.00402910
lea ecx, [esp + 0x10540]
call fcn.00402910
mov eax, 1
mov ecx, dword [esp + 0x1052c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10514]
xor ecx, esp
call fcn.004424e7
add esp, 0x10524
ret
call fcn.004441eb
add esp, 4
lea ecx, [esp + 0x1053c]
call fcn.00402910
lea ecx, [esp + 0x10540]
call fcn.00402910
xor eax, eax
jmp 0x422b55