Function at 0x40c111
Capabilities:
Write file on windows

Disassembly:
push 0x300
mov eax, 0x46e5e7
call fcn.004516f3
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, ecx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x124], bl
call esi
test eax, eax
je 0x40c64b
push edi
call fcn.004295d7
pop ecx
test eax, eax
je 0x40c64b
cmp dword [ebp + 0xc], ebx
je 0x40c17c
lea eax, [ebp - 0x124]
push eax
mov ecx, edi
call fcn.004117f9
pop ecx
lea eax, [ebp - 0x124]
push eax
call esi
test eax, eax
je 0x40c2ac
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0040ed1f
mov dword [ebp - 4], 2
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x2d4]
xor esi, esi
cmp eax, ebx
mov byte [ebp - 0x234], 1
push dword [ebp - 0x234]
sete cl
push esi
mov byte [ebp - 0x21c], cl
push dword [ebp - 0x21c]
mov dword [ebp - 0x12c], 0xf
push eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x130], ebx
mov byte [ebp - 0x140], bl
call fcn.0040f672
mov byte [ebp - 4], 3
cmp dword [ebp - 0x130], ebx
jbe 0x40c278
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x178]
call fcn.00426104
pop ecx
mov edi, dword [ebp - 0x218]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0040319c
push ebx
push 1
lea ecx, [ebp - 0x178]
call fcn.00403353
push ebx
push 1
lea ecx, [ebp - 0x140]
call fcn.00403353
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a4]
call fcn.0040eda6
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004484dc
pop ecx
jmp 0x40c6b5
push ebx
push 1
lea ecx, [ebp - 0x140]
call fcn.00403353
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a4]
call fcn.0040eda6
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004484dc
pop ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], 0x3c
mov dword [ebp - 0x210], 0x80004005
push str.jupdate
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 4], 5
call fcn.00402573
push dword [ebp - 0x240]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 6
call fcn.00402573
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 4], 7
call fcn.0042a21c
mov esi, eax
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x178]
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 8
call fcn.00403244
cmp dword [ebp + 0x10], ebx
push 1
setne al
push esi
lea ecx, [ebp - 0x1b0]
mov byte [esi + 0x1d], al
call fcn.0042a2a9
push eax
lea esi, [ebp - 0x194]
mov byte [ebp - 4], 9
call fcn.0042bb24
mov edi, dword [ebp - 0x218]
mov esi, eax
mov byte [ebp - 4], 0xa
call fcn.0040319c
push ebx
push 1
lea ecx, [ebp - 0x194]
call fcn.00403353
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 4], 8
call fcn.0040a2b7
lea edi, [ebp - 0x20c]
call fcn.0042a264
push ebx
push 1
lea ecx, [ebp - 0x140]
call fcn.00403353
push ebx
push 1
lea ecx, [ebp - 0x178]
call fcn.00403353
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x210], ebx
jmp 0x40c507
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40c5b2
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 esi, eax
cmp esi, 0xffffffff
je 0x40c5b2
push dword [ebp - 0x218]
lea eax, [ebp - 0x15c]
call fcn.00426104
pop ecx
mov dword [ebp - 4], 0xc
cmp dword [ebp - 0x148], 0x10
mov eax, dword [ebp - 0x15c]
jae 0x40c56a
lea eax, [ebp - 0x15c]
push ebx
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x224]
cmp ecx, ebx
je 0x40c5a4
cmp dword [ebp + 0x18], 0x40
jbe 0x40c5a4
lea eax, [ebp - 0x124]
push eax
call fcn.004145d8
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x15c]
call fcn.00403353
mov eax, dword [ebp - 0x210]
jmp 0x40c6b7
cmp dword [0x49a024], 3
jg 0x40c6b5
push str.not_allowed_URL:
lea ecx, [ebp - 0x194]
call fcn.00402573
push edi
push eax
lea eax, [ebp - 0x1b0]
push eax
mov dword [ebp - 4], ebx
call fcn.0040f4e7
add esp, 0xc
push str.GetXmlFile
push 0x90
push str.c:_re_workspace_8_2_build_windows_amd64_cygwin_jdk8u171_10807_install_src_windows_au_jucheck_UpdateCommon.cpp
push 3
mov edx, eax
mov ecx, 0x49a024
mov byte [ebp - 4], 1
call fcn.0042432e
push ebx
push 1
lea ecx, [ebp - 0x1b0]
call fcn.00403353
push ebx
push 1
lea ecx, [ebp - 0x194]
call fcn.00403353
xor eax, eax
call fcn.0045174f
ret