Function at 0x404710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x1038c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004058d0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x8018]
xor edi, edi
mov dword [esp], ecx
mov eax, 0x8000
xor esi, esi
mov dword [esp + 4], edi
mov ebx, 0x8000
xor edi, edi
mov dword [ebp - 0x1037c], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], ebx
lea edx, [ebp - 0x10018]
mov ebx, 0x104
mov dword [esp], edx
mov dword [esp + 4], esi
xor esi, esi
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
lea ecx, [ebp - 0x10128]
mov eax, 0x104
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], ebx
lea edx, [ebp - 0x10238]
lea ebx, [ebp - 0x10258]
mov dword [esp], edx
mov edi, ebx
mov dword [esp + 4], esi
mov esi, ebx
call sub.msvcrt.dll_memset
cld
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov dword [esp + 4], ebx
mov edi, 0x407166
mov dword [esp], 0x11
call fcn.004020c0
cld
mov ecx, 5
lea eax, [ebp - 0x10128]
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 4], eax
seta dl
setb cl
mov dword [esp], 0xe
xor ebx, ebx
cmp dl, cl
sete bl
call fcn.004020c0
mov dword [esp], 0xf
mov ecx, 0x4080a0
mov dword [esp + 4], ecx
call fcn.004020c0
test eax, eax
je 0x404a79
mov eax, dword [0x408090]
test eax, eax
jne 0x404bb9
mov dword [esp], 0x10
lea edi, [ebp - 0x8018]
mov dword [esp + 4], edi
call fcn.004020c0
test eax, eax
jne 0x404842
mov eax, dword [0x408090]
test eax, eax
jne 0x404bd8
mov ecx, dword [ebp - 0x1037c]
lea edx, [ebp - 0x10018]
mov edi, 0x616c632d
lea eax, [ebp - 0x8018]
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov esi, 0x22206874
call fcn.004033a0
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov dword [eax + 0x4082a8], edi
mov ecx, 0x61707373
test ebx, ebx
mov dword [eax + 0x4082ac], ecx
mov dword [eax + 0x4082b0], esi
mov byte [eax + 0x4082b4], 0
jne 0x404bff
cmp byte [ebp - 0x10128], 0
jne 0x404c2f
lea eax, [ebp - 0x10018]
mov esi, 0x4075b3
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x404a27
lea esi, [esi]
lea edi, [edi]
mov eax, dword [0x408090]
test eax, eax
jne 0x404b5e
mov dword [esp], ebx
mov edi, 0x4075b5
mov dword [esp + 4], edi
call sub.msvcrt.dll_strpbrk
test eax, eax
je 0x404b8c
mov dword [esp], ebx
mov edx, 0x5c
xor esi, esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x404922
sub eax, ebx
lea esi, [eax + 1]
mov byte [ebp - 0x10238], 0
lea edi, [ebp - 0x10238]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_strncpy
lea ecx, [ebp - 0x10238]
lea esi, [ecx + esi]
lea eax, [ebp - 0x10378]
mov byte [esi], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
cmp eax, 0xffffffff
mov ebx, eax
je 0x404a00
lea edi, [ebp - 0x10364]
jmp 0x404986
mov dword [esp], ebx
lea eax, [ebp - 0x10378]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findnext
test eax, eax
jne 0x404a00
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], 0x4082a8
lea eax, [ebp - 0x10238]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov edx, 0x3b
mov word [eax + 0x4082a8], dx
mov eax, dword [0x408090]
test eax, eax
je 0x404970
mov dword [esp], eax
lea edx, [ebp - 0x10238]
mov ecx, str._____________:_t_s_n
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
lea eax, [ebp - 0x10378]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findnext
test eax, eax
je 0x404986
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll__findclose
mov dword [esp], 0
mov esi, 0x4075b3
mov dword [esp + 4], esi
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
jne 0x4048e0
mov dword [esp], 0x4082a8
mov edi, 0x4080a0
call sub.msvcrt.dll_strlen
mov byte [eax + 0x4082a7], 0
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov byte [eax + 0x4082aa], 0
mov ecx, 0x2022
mov dword [esp + 4], edi
mov dword [esp], 0x4082a8
mov word [eax + 0x4082a8], cx
call sub.msvcrt.dll_strcat
add esp, 0x1038c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x404adb
mov dword [esp], 0x4082a8
mov ebx, 0x4082a8
mov esi, 0x72616a2d
call sub.msvcrt.dll_strlen
mov dword [eax + 0x4082a8], esi
mov word [eax + ebx + 4], 0x2220
mov byte [eax + ebx + 6], 0
mov edx, dword [ebp + 8]
mov dword [esp], 0x4082a8
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov edi, 0x22
mov word [eax + 0x4082a8], di
add esp, 0x1038c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4082a8
mov edi, 0x4082a8
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0x1037c]
mov edx, 0x72616a2d
mov dword [eax + 0x4082a8], edx
mov word [eax + edi + 4], 0x2220
mov byte [eax + edi + 6], 0
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncat
mov dword [esp], edi
call sub.msvcrt.dll_strlen
cmp byte [eax + edi - 1], 0x5c
je 0x404b37
mov ebx, 0x5c
mov word [eax + 0x4082a8], bx
mov dword [esp], 0x4082a8
lea esi, [ebp - 0x10128]
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
jmp 0x404ac4
mov dword [esp + 8], ebx
mov ecx, str.Add_classpath:_t_s_n
mov edi, 0x4075b5
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_strpbrk
test eax, eax
jne 0x404906
mov dword [esp + 4], ebx
mov ebx, 0x3b
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov word [eax + 0x4082a8], bx
jmp 0x404a08
mov dword [esp], eax
mov ecx, 0x4080a0
mov esi, str.Main_class:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.msvcrt.dll_fprintf
jmp 0x40481b
mov dword [esp + 0xc], eax
mov edx, 1
mov eax, 0x1e
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.Info:_t_tClasspath_not_defined._n
call sub.msvcrt.dll_fwrite
jmp 0x404842
mov ebx, dword [ebp + 8]
mov dword [esp], 0x4082a8
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
mov edx, 0x3b
mov word [eax + 0x4082a8], dx
jmp 0x4048b4
mov dword [esp], 0x4082a8
lea edi, [ebp - 0x10128]
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcat
mov dword [esp], 0x4082a8
call sub.msvcrt.dll_strlen
jmp 0x404c1e