Function at 0x40d451
Capabilities:
Write file on windows

Disassembly:
push 0x2b4
mov eax, 0x473240
call fcn.00449371
mov edi, edx
mov dword [ebp - 0x294], edi
mov esi, ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2b4], ebx
mov byte [ebp - 0x124], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d9ec
mov ecx, esi
call fcn.00427030
test eax, eax
je 0x40d9ec
cmp dword [ebp + 8], ebx
je 0x40d4bd
lea edx, [ebp - 0x124]
mov ecx, esi
call fcn.0041075c
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d5fc
sub esp, 0xc
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x284]
push eax
call fcn.0040e635
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x16c]
mov eax, dword [ebp - 0x284]
push dword [ebp - 0x2b0]
mov word [ebp - 0x29c], 1
push dword [ebp - 0x29c]
mov eax, dword [eax + 4]
push ebx
mov byte [ebp - 0x2a3], bl
mov dword [ebp - 0x15c], ebx
mov eax, dword [ebp + eax - 0x24c]
test eax, eax
mov dword [ebp - 0x158], 0xf
sete byte [ebp - 0x2a4]
mov byte [ebp - 0x16c], bl
push dword [ebp - 0x2a4]
push eax
call fcn.0040f8aa
mov byte [ebp - 4], 3
cmp dword [ebp - 0x15c], 0
jbe 0x40d5c8
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x12c], ebx
push eax
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x128], ebx
call fcn.00404b71
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.00403dcf
lea ecx, [ebp - 0x13c]
call fcn.004049ff
lea ecx, [ebp - 0x16c]
call fcn.004049ff
lea ecx, [ebp - 0x214]
call fcn.0040e5f2
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00447761
pop ecx
jmp 0x40da4a
lea ecx, [ebp - 0x16c]
call fcn.004049ff
lea ecx, [ebp - 0x214]
call fcn.0040e5f2
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00447761
pop ecx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x290], 0x3c
mov dword [ebp - 0x288], 0x80004005
push str.jupdate
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 4], 6
call fcn.00403e1c
push esi
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 7
call fcn.00403e1c
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x22c]
call fcn.00422768
mov esi, eax
mov dword [ebp - 0x29c], esi
mov byte [ebp - 4], 9
lea eax, [ebp - 0x19c]
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x144], 5
mov dword [ebp - 0x140], 5
mov dword [ebp - 0x148], ebx
call fcn.00403da4
cmp dword [ebp + 0xc], 0
lea edi, [esi + 0x50]
mov ecx, dword [ebp - 0x29c]
setne al
mov byte [esi + 0x19], al
lea esi, [ebp - 0x148]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1b4]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00423e76
lea ecx, [ebp - 0x22c]
call fcn.004227d5
lea ecx, [ebp - 0x1cc]
call fcn.004049ff
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xd
call fcn.004049ff
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x174], ebx
push eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x170], ebx
call fcn.00404b71
mov esi, dword [ebp - 0x294]
lea eax, [ebp - 0x184]
push eax
mov ecx, esi
call fcn.00403dcf
lea ecx, [ebp - 0x184]
call fcn.004049ff
lea ecx, [ebp - 0x1b4]
mov edi, ebx
call fcn.004049ff
or dword [ebp - 4], 0xffffffff
jmp 0x40d8f1
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d9b0
push ebx
push 0x20
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x40d9b0
push esi
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
call fcn.00404b71
push ebx
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x2b4]
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
mov esi, dword [ebp - 0x29c]
cmovae eax, dword [ebp - 0x154]
push ecx
push dword [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2b0]
test edx, edx
je 0x40d9a5
cmp dword [ebp + 0x14], 0x40
jbe 0x40d9a5
push 0x800c
lea ecx, [ebp - 0x124]
call fcn.0041418e
pop ecx
lea ecx, [ebp - 0x154]
call fcn.004049ff
mov eax, edi
jmp 0x40da4c
cmp dword [0x4ad0bc], 3
jg 0x40da4a
push str.not_allowed_URL:
lea ecx, [ebp - 0x19c]
call fcn.00403e1c
push esi
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1b4]
call fcn.0040f45f
pop ecx
push eax
push str.GetXmlFile
push 0x78
push 0x48a498
push 3
mov ecx, 0x4ad0bc
mov byte [ebp - 4], 1
call fcn.00427376
lea ecx, [ebp - 0x1b4]
call fcn.004049ff
lea ecx, [ebp - 0x19c]
call fcn.004049ff
xor eax, eax
call fcn.004492be
ret