Function at 0x100fd450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x10200a71
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
call fcn.101a7380
mov esi, dword [eax + 0x24]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], esi
je 0x100fd4b6
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov dword [esp + 0xc0], ebx
cmp esi, ebx
jne 0x100fd4d3
mov dword [esp + 0xc0], 0xffffffff
xor al, al
jmp 0x100fd893
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
je 0x100fd4f2
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov byte [esp + 0xc0], 1
cmp edi, ebx
jne 0x100fd519
mov dword [esp + 0xc0], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
xor al, al
jmp 0x100fd893
lea esi, [esp + 0x20]
call fcn.1019f530
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x20], ebx
je 0x100fd568
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x18], 8
jb 0x100fd53f
mov eax, dword [eax + 4]
jmp 0x100fd542
add eax, 4
push ebx
push 0x80
push 2
push ebx
push 4
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0xffffffff
jne 0x100fd5a6
mov byte [esp + 0xc0], 1
lea eax, [esp + 0x20]
call fcn.1019f550
mov byte [esp + 0xc0], bl
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100fd893
mov byte [esp + 0x24], 0xef
mov byte [esp + 0x25], 0xbb
mov byte [esp + 0x26], 0xbf
mov dword [esp + 0x28], ebx
cmp dword [eax], 0xffffffff
je 0x100fd5d4
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 3
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov byte [esp + 0xc0], 3
fld1
push 0x1023b608
sub esp, 8
fstp qword [esp]
push str.__xml_version__.1f__encoding__s____n
lea ecx, [esp + 0x58]
call fcn.1019cb70
mov esi, 0xf
add esp, 0x10
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x100fd633
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.1019e320
mov ecx, dword [esp + 0x70]
add esp, 8
cmp dword [esp + 0x7c], 0x10
jae 0x100fd654
lea ecx, [esp + 0x68]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100fd67d
cmp ecx, ebx
je 0x100fd67d
cmp dword [eax], 0xffffffff
je 0x100fd67d
mov eax, dword [eax]
push ebx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x80]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0xc0], 3
cmp dword [esp + 0x7c], 0x10
jb 0x100fd699
mov ecx, dword [esp + 0x68]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x60], 8
jb 0x100fd6c1
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 7
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov byte [esp + 0xc0], 5
push 1
push str._main_version__.1d___n
lea ecx, [esp + 0x6c]
call fcn.1019cb70
add esp, 8
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0xc0], 6
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x100fd71e
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.1019e320
mov ecx, dword [esp + 0x54]
add esp, 8
cmp dword [esp + 0x60], 0x10
jae 0x100fd73f
lea ecx, [esp + 0x4c]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100fd765
cmp ecx, ebx
je 0x100fd765
cmp dword [eax], 0xffffffff
je 0x100fd765
mov eax, dword [eax]
push ebx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x64]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0xc0], 5
cmp dword [esp + 0x60], 0x10
jb 0x100fd781
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x7c], 8
jb 0x100fd7a9
mov edx, dword [esp + 0x68]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [eax], edi
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x40], esp
call eax
mov byte [esp + 0xd0], 7
mov byte [esp + 0xd0], 2
mov ecx, dword [ebp + 8]
call fcn.100fbad0
cmp al, bl
je 0x100fd568
push str.__main__n
lea ecx, [esp + 0x4c]
call fcn.10001d60
mov byte [esp + 0xc0], 8
cmp dword [esp + 0x60], 0x10
mov ecx, dword [esp + 0x4c]
jae 0x100fd825
lea ecx, [esp + 0x4c]
mov edi, dword [esp + 0x5c]
lea esi, [esp + 0x28]
lea eax, [esp + 0x20]
call fcn.1019f5c0
mov byte [esp + 0xc0], 2
lea ecx, [esp + 0x48]
call fcn.10001da0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x20]
mov dword [edx], ecx
call fcn.1019f5f0
mov byte [esp + 0xc0], 1
mov eax, esi
call fcn.1019f550
mov byte [esp + 0xc0], bl
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0xc0], 0xffffffff
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret 8