Function at 0x40cf88
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x238
push 0xffffffffffffffff
push 0x4668a5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x494244]
xor eax, ebp
mov dword [ebp + 0x234], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x24c]
xor ebx, ebx
mov esi, dword [ebp + 0x240]
mov edi, dword [ebp + 0x244]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x250]
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
mov byte [ebp + 0x130], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d477
push esi
call fcn.00419605
pop ecx
test eax, eax
je 0x40d477
cmp dword [ebp + 0x248], ebx
je 0x40d028
lea eax, [ebp + 0x130]
push eax
push esi
call fcn.00412896
pop ecx
pop ecx
lea eax, [ebp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d0e9
push 1
push 0x40
push 1
lea eax, [ebp + 0x130]
push eax
lea ecx, [ebp]
call fcn.0040be3b
mov eax, dword [ebp]
lea ecx, [ebp - 0x1d]
push ecx
mov word [ebp - 0x34], 1
lea ecx, [ebp + 0x118]
push dword [ebp - 0x34]
mov eax, dword [eax + 4]
push ebx
mov byte [ebp - 0x2b], bl
mov dword [ebp - 4], 2
mov eax, dword [ebp + eax + 0x38]
test eax, eax
sete byte [ebp - 0x2c]
push dword [ebp - 0x2c]
push eax
call fcn.0040ade9
cmp dword [ebp + 0x128], 0
mov byte [ebp - 4], 3
jbe 0x40d0d6
lea eax, [ebp + 0x118]
push eax
lea eax, [ebp + 0xe8]
push eax
call fcn.00417a07
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.0040c452
lea ecx, [ebp + 0xe8]
call fcn.004083fa
lea ecx, [ebp + 0x118]
call fcn.004083fa
lea ecx, [ebp]
call fcn.0040c775
jmp 0x40d4e2
lea ecx, [ebp + 0x118]
call fcn.004083fa
lea ecx, [ebp]
call fcn.0040c775
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x3c
mov dword [ebp - 0x18], 0x80004005
push str.jupdate
lea ecx, [ebp + 0xd0]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 4
call fcn.00402f72
push esi
lea ecx, [ebp + 0xb8]
mov byte [ebp - 4], 5
call fcn.00402f72
lea eax, [ebp + 0xb8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x58]
call fcn.004283e8
push 5
pop ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp + 0xd0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x4c], ebx
call fcn.0042aee6
cmp dword [ebp - 0x14], 0
setne cl
movzx ecx, cl
push ecx
mov ecx, eax
call fcn.00429faf
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.0042aed3
lea ecx, [ebp + 0xe8]
push ecx
mov ecx, eax
call fcn.00429f14
lea ecx, [ebp + 0x58]
call fcn.004287ca
lea ecx, [ebp + 0xb8]
call fcn.004083fa
lea ecx, [ebp + 0xd0]
mov byte [ebp - 4], 0xb
call fcn.004083fa
lea eax, [ebp + 0xe8]
push eax
lea eax, [ebp + 0x100]
push eax
call fcn.00417a07
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.0040c452
lea ecx, [ebp + 0x100]
call fcn.004083fa
lea ecx, [ebp + 0xe8]
mov esi, ebx
call fcn.004083fa
or dword [ebp - 4], 0xffffffff
jmp 0x40d38e
lea eax, [ebp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d43b
push ebx
push 0x20
push 4
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40d43b
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.00417a07
pop ecx
pop ecx
cmp dword [ebp + 0x114], 0x10
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp + 0x100]
cmovae eax, dword [ebp + 0x100]
push ebx
push ecx
push dword [ebp + 0x110]
mov dword [ebp - 4], 0xd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], 0
je 0x40d430
push 0x20
push 0x800c
push dword [ebp + 0x254]
lea eax, [ebp + 0x130]
push dword [ebp - 0x3c]
push eax
call fcn.00414f60
add esp, 0x14
lea ecx, [ebp + 0x100]
call fcn.004083fa
mov eax, esi
jmp 0x40d4e4
push 3
call fcn.004185e3
mov ecx, eax
call fcn.0041879e
test al, al
je 0x40d4e2
push str.not_allowed_URL:
lea ecx, [ebp + 0xd0]
call fcn.00402f72
push esi
push eax
lea eax, [ebp + 0xe8]
mov dword [ebp - 4], ebx
push eax
call fcn.004029a4
add esp, 0xc
push eax
push str.GetXmlFile
push 0x78
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u391_514_install_src_windows_au_jucheck_UpdateCommon.cpp
push 3
mov byte [ebp - 4], 1
call fcn.004185e3
mov ecx, eax
call fcn.004187aa
lea ecx, [ebp + 0xe8]
call fcn.004083fa
lea ecx, [ebp + 0xd0]
call fcn.004083fa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.00440ce3
add ebp, 0x238
leave
ret