Function at 0x4010c0
Capabilities:
Accept command line arguments
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x42c304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4281c0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
push 0x103
xor esi, esi
lea eax, [ebp - 0x36b]
push esi
push eax
mov byte [ebp - 0x36c], 0
call fcn.0040f480
push 0x103
lea ecx, [ebp - 0x107]
push esi
push ecx
mov byte [ebp - 0x108], 0
call fcn.0040f480
push 0x103
lea edx, [ebp - 0x20b]
push esi
push edx
mov byte [ebp - 0x20c], 0
call fcn.0040f480
push 0x103
lea eax, [ebp - 0x46f]
push esi
push eax
mov byte [ebp - 0x470], 0
call fcn.0040f480
add esp, 0x30
lea ecx, [ebp - 0x36c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 1
jl 0x401168
cmp eax, 0x104
jle 0x40117c
lea edx, [ebp - 0x36c]
push 0x4281c4
push edx
call fcn.0040cd62
add esp, 8
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x470]
push str.JAUReg.log
push ecx
call fcn.0040cd62
push 0x164
call fcn.0040cce2
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x40123a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x578], esp
push 3
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push 0x4281d4
mov byte [ecx], 0
call fcn.00401f60
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x578], esp
push 0xb
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push str.__n___d:__m
mov byte [ecx], 0
call fcn.00401f60
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], edi
lea eax, [ebp - 0x470]
mov dword [ecx + 0x10], esi
mov dword [ebp - 0x578], esp
mov byte [ecx], 0
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401210
sub eax, edi
push eax
lea edx, [ebp - 0x470]
push edx
call fcn.00401f60
push esi
mov esi, ebx
call fcn.00402cc0
mov ebx, eax
mov dword [ebp - 0x57c], ebx
xor esi, esi
jmp 0x401242
mov dword [ebp - 0x57c], esi
mov ebx, esi
cmp dword [ebx], 1
jg 0x401262
push str.JAUREG_START
push str._WinMain_16
push 0x27
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x401692
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x108]
push ecx
mov edx, ecx
push str._sSun_
push edx
call edi
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
push eax
call esi
lea ecx, [ebp - 0x108]
push ecx
mov edx, ecx
push str._sJava_
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call esi
lea ecx, [ebp - 0x108]
push ecx
mov edx, ecx
push str._sJava_Update_
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call esi
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push str._sjaureglist.xml
push edx
call fcn.0040cd62
add esp, 0xc
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x578], eax
cmp eax, 0xffffffff
je 0x4013d8
cmp dword [ebx], 1
jg 0x401357
lea ecx, [ebp - 0x108]
push ecx
push str.create_file_in__s
push str._WinMain_16
push 0x44
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x14
mov ecx, 0x16
mov esi, str.__xml_version_1.0__encoding_UTF_8_____n__root___n__Application____Application___n___root___n
lea edi, [ebp - 0x268]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x268]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401375
mov esi, dword [ebp - 0x578]
sub eax, edx
push 0
lea edx, [ebp - 0x580]
push edx
push eax
lea eax, [ebp - 0x268]
push eax
push esi
mov dword [ebp - 0x580], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4013d1
cmp dword [ebx], 3
jg 0x4013d1
lea ecx, [ebp - 0x20c]
push ecx
push str.fail_to_create_file__s
push str._WinMain_16
push 0x4a
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x578]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call fcn.00401c10
mov esi, eax
add esp, 4
test esi, esi
jne 0x40140d
cmp dword [ebx], 3
jg 0x4016b2
push str.CommandLineToArgv_failed_n
push str._WinMain_16
push 0x56
jmp 0x4016a3
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x428318
push eax
call edi
test eax, eax
jne 0x401561
cmp dword [ebx], 1
jg 0x40144a
mov ecx, dword [esi + 8]
push ecx
push str.register__s
push str._WinMain_16
push 0x5e
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x14
push 0x188
call fcn.0040cce2
mov edi, eax
add esp, 4
test edi, edi
je 0x40146d
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.00409610
jmp 0x40146f
xor edi, edi
push edi
call fcn.00409a00
test al, al
jne 0x4014a9
cmp dword [ebx], 3
jg 0x4016b2
lea eax, [ebp - 0x20c]
push eax
push str.fail_to_parse__s
push str._WinMain_16
push 0x63
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x14
jmp 0x4016b2
push 0x102
lea edx, [ebp - 0x572]
mov ecx, 0x3c
push 0
push edx
mov word [ebp - 0x574], cx
call fcn.0040f480
mov eax, dword [esi + 8]
add esp, 0xc
push eax
lea ecx, [ebp - 0x574]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esi + 0xc]
push edx
lea ecx, [ebp - 0x574]
mov ebx, edi
call fcn.0040b820
push edi
lea ecx, [ebp - 0x20c]
call fcn.00409ce0
test edi, edi
je 0x40150c
push edi
call fcn.00409920
push edi
call fcn.0040c923
add esp, 4
mov ebx, dword [ebp - 0x57c]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebx], 1
jg 0x40153c
push str.JAUREG_END
push str._WinMain_16
push 0x8d
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x10
mov esi, ebx
call fcn.00402e80
push ebx
call fcn.0040c923
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2f6
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 4]
push 0x428340
push eax
call edi
test eax, eax
jne 0x401666
cmp dword [ebx], 1
jg 0x40159e
mov ecx, dword [esi + 8]
push ecx
push str.unregister__s
push str._WinMain_16
push 0x71
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
add esp, 0x14
mov edx, dword [esi + 8]
push str.auto_update
push edx
call edi
test eax, eax
je 0x40165a
push 0x188
call fcn.0040cce2
mov edi, eax
add esp, 4
test edi, edi
je 0x4015d4
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00409610
jmp 0x4015d6
xor edi, edi
push edi
call fcn.00409a00
test al, al
jne 0x401610
cmp dword [ebx], 3
jg 0x4016b2
lea ecx, [ebp - 0x20c]
push ecx
push str.fail_to_parse__s
push str._WinMain_16
push 0x79
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x14
jmp 0x4016b2
mov eax, dword [edi + 0x24]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x578], ecx
mov dword [edi + 0x28], eax
test eax, eax
je 0x401631
call fcn.0040be40
mov ecx, dword [ebp - 0x578]
mov dword [edi + 0x28], eax
test ecx, ecx
je 0x40163f
mov edx, dword [edi + 0x28]
push ecx
push edx
call fcn.0040a230
push edi
lea ecx, [ebp - 0x20c]
call fcn.00409ce0
push edi
call fcn.00409920
push edi
call fcn.0040c923
add esp, 4
mov ecx, ebx
call fcn.00401820
jmp 0x401512
cmp dword [ebx], 3
jg 0x401512
push str.flags_not_regonize_or_args_not_correct
push str._WinMain_16
push 0x85
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x10
jmp 0x401512
cmp dword [ebx], 3
jg 0x4016b2
push str.fail_to_get_appdata_directory__jaureg_exit
push str._WinMain_16
push 0x3b
push str.jaureg.cpp
mov edi, ebx
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040c2f6
mov esp, ebp
pop ebp
ret 0x10