Function at 0x420070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a429
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xcc], edi
mov eax, dword [edi + 0xd8]
lea esi, [edi + 0xd8]
mov ecx, esi
mov dword [ebp - 0x24], esi
call dword [eax + 4]
push 0x44
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0041ad80
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x68], vtable.CStringUTF8.0
je 0x4200ed
lea ecx, [ebp - 0x34]
call fcn.0041a760
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edi + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [ebp - 0xcc]
mov edi, eax
add ecx, 0x88
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
call edx
push edi
push eax
push str.__xml_version__s__encoding__s_____n
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004e78b0
add esp, 0x14
lea ecx, [ebp - 0x134]
call fcn.0041c2a0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0xcc]
test ecx, ecx
je 0x420161
push ecx
push 0
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.00420c40
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CFile.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x44
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x68]
call dword [eax + 0x34]
sub esp, 0x18
mov byte [ebp - 4], 3
mov edi, esp
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc8], edi
call fcn.004e8db0
lea edx, [ebp - 0xc4]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.004e89d0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 3
call fcn.0041c1d0
lea ecx, [ebp - 0xac]
call fcn.00424b20
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xd8]
cmp edx, 0x10
jb 0x420234
mov ecx, dword [ebp - 0xec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42022a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4203b6
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
mov eax, dword [eax + 0x50]
call eax
push eax
mov dword [ebp - 0xd0], eax
call fcn.004fe6cf
mov edx, dword [ebp - 0xac]
lea ecx, [ebp - 0xac]
add esp, 4
mov edi, eax
mov dword [ebp - 0xc8], edi
mov edx, dword [edx + 0x50]
call edx
mov edx, dword [ebp - 0xac]
lea ecx, [ebp - 0xac]
push eax
mov edx, dword [edx + 0x40]
call edx
push eax
push edi
call fcn.004ffc30
add esp, 0xc
push 2
sub esp, 0x44
mov edi, esp
mov ecx, edi
mov dword [ebp - 0xd4], edi
call fcn.0041ad80
cmp dword [edi + 0x38], 0
mov dword [edi], vtable.CStringUTF8.0
je 0x4202cc
lea ecx, [edi + 0x34]
call fcn.0041a760
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov eax, dword [ebp - 0xcc]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.0041a900
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0041c7b0
test eax, eax
jne 0x42032a
lea ecx, [ebp - 0xac]
call fcn.0041c2a0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.0041c890
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
xor edi, edi
jmp 0x42038b
mov edi, dword [ebp - 0xc8]
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 0xd0]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 0xc]
push edi
call fcn.004fe6d8
add esp, 4
lea ecx, [ebp - 0xac]
call fcn.0041c2a0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.0041c890
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
mov edi, 1
mov dword [ebp - 4], 0xb
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
call fcn.00501acf
int3