Function at 0x1000dae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push edi
mov dword [ebp - 0x234], ecx
push str.Enter_GetXML_n
call fcn.1000de0c
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x234]
mov dword [eax + 0x424], 1
push 3
push 0
lea ecx, [ebp - 8]
push ecx
call fcn.1000df20
add esp, 0xc
push 0x107
push 0
lea edx, [ebp - 0x114]
push edx
call fcn.1000df20
add esp, 0xc
mov byte [ebp - 8], 0xd
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea ecx, [ebp - 0x114]
push ecx
push 3
lea edx, [ebp - 8]
push edx
push 0x22003c
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x287c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000db9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f360
call fcn.1000de0c
add esp, 8
xor eax, eax
jmp 0x1000de07
mov edx, dword [ebp - 0x112]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 0x111]
and eax, 0xff
shl eax, 0x10
add edx, eax
mov ecx, dword [ebp - 0x110]
and ecx, 0xff
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x10f]
and eax, 0xff
add edx, eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
push ecx
push str.Whole_Size___d
call fcn.1000de0c
add esp, 8
cmp dword [ebp - 0xc], 0
jge 0x1000dbfa
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x234]
add edx, 0xc28
push edx
push str.xml_file_name_is___s_
call fcn.1000de0c
add esp, 8
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x234]
add eax, 0xc28
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x1000ddf1
mov dword [ebp - 0x11c], 0
jmp 0x1000dc66
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0xc]
cdq
mov ecx, 0xff
idiv ecx
cmp dword [ebp - 0x11c], eax
jg 0x1000dd8f
mov byte [ebp - 8], 0xd
mov edx, dword [ebp - 0x11c]
add edx, 1
and edx, 0xff00
sar edx, 8
mov byte [ebp - 7], dl
mov eax, dword [ebp - 0x11c]
add eax, 1
and eax, 0xff
mov byte [ebp - 6], al
push 0x107
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.1000df20
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
push 0xff
lea eax, [ebp - 0x114]
push eax
push 3
lea ecx, [ebp - 8]
push ecx
push 0x22003c
mov edx, dword [ebp - 0x234]
mov eax, dword [edx + 0x287c]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000dd0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_error__d_n
call fcn.1000de0c
add esp, 8
xor eax, eax
jmp 0x1000de07
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x22c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x22b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x107
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.size___d_bytes__written_size___d_bytes
call fcn.1000de0c
add esp, 0xc
jmp 0x1000dc57
mov dword [ebp - 0x124], 0
mov ax, word [0x1001f468]
mov word [ebp - 0x120], ax
mov cl, byte [0x1001f46a]
mov byte [ebp - 0x11e], cl
push 0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1000de07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___is_failed__GetLastError_____d
call fcn.1000de0c
add esp, 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret