Function at 0x431500
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cee68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0xd8]
push 1
push eax
mov edi, 1
lea esi, [esp + 0x18]
call fcn.00490ba0
xor edi, edi
mov dword [esp + 0x20], edi
mov ecx, dword [ebx + 0xd8]
cmp ecx, edi
je 0x43154a
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebx + 0xd8], edi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push 0x4dde9c
push ecx
call fcn.004058b0
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
call dword [0x5065f4]
push 2
push esi
call dword [0x5066a0]
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
push 0x5c
push eax
call fcn.004ad64e
add esp, 8
cmp eax, edi
jne 0x4315ae
or eax, 0xffffffff
jmp 0x4315b2
sub eax, dword [esi]
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00403490
mov byte [esp + 0x20], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00409df0
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4315f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str..xml
call fcn.004ac8fd
add esp, 4
push eax
push str..xml
lea ecx, [esp + 0x14]
call fcn.00409df0
mov esi, dword [esp + 0xc]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push esi
call dword [0x506600]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43168f
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
push ebp
push edi
push edi
push edi
push edi
push eax
push esi
push edi
push 0xfde9
call dword [0x5066a4]
mov edi, eax
push edi
call fcn.004be903
add esp, 4
push 0
push 0
push edi
mov ebp, eax
mov eax, dword [esi - 0xc]
push ebp
push eax
push esi
push 0
push 0xfde9
call dword [0x5066a4]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call fcn.004be908
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
jg 0x431712
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431734
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4