Function at 0x4061c0
Capabilities:
Read file on windows
Set current directory

Disassembly:
mov al, byte [0x416860]
sub esp, 0x1ac
push ebx
push ebp
xor ebp, ebp
push esi
test al, al
push edi
mov dword [0x415eb4], ebp
jne 0x406207
call fcn.00405f90
mov edi, 0x416980
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x416860
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406236
mov edi, 0x416860
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x41685f], 0x5c
je 0x406236
mov edi, 0x416860
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x412e34]
mov word [edi - 1], cx
push 0x416980
push 0x416860
call fcn.004105e0
mov ecx, dword [0x415eb8]
add esp, 8
neg eax
sbb eax, eax
inc eax
cmp ecx, ebp
mov dword [0x415eb0], eax
je 0x406281
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x415eb8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x415eb0]
mov dword [0x415eb8], ebp
mov dword [0x415ebc], ebp
mov ecx, dword [0x41661c]
cmp ecx, ebp
mov dword [esp + 0x28], ecx
je 0x4062c0
push 0x300
push 0x42
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x4062b7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x4062bb
mov dword [esp + 0x28], ebp
mov eax, dword [0x415eb0]
cmp eax, ebp
je 0x4062ee
mov eax, dword [str..sp_.sp_]
mov ecx, dword [0x412e3c]
mov dx, word [0x412e40]
mov dword [esp + 0x48], eax
mov al, byte [0x412e42]
mov dword [esp + 0x4c], ecx
mov word [esp + 0x50], dx
mov byte [esp + 0x52], al
jmp 0x4062fd
lea ecx, [esp + 0x48]
push 0x20
push ecx
call fcn.00407050
add esp, 8
mov cl, byte [esp + 0x48]
xor edx, edx
test cl, cl
setne dl
mov edi, edx
lea eax, [esp + 0x48]
test cl, cl
mov dword [esp + 0x1c], edi
je 0x40632b
cmp byte [eax], 0x2c
jne 0x40631f
mov byte [eax], 0
inc edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406316
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x1c0]
lea eax, [esp + 0x48]
mov dword [esp + 0x10], eax
xor eax, eax
cmp edi, ebp
mov dword [esp + 0x18], eax
je 0x406444
lea ebp, [edi + 0x270f]
mov dword [esp + 0x14], edi
mov ecx, dword [0x415e80]
push 0
push ecx
push ebp
push ebx
push 0
push 0
push 0
push 0
push 0x40000001
push 0
push str.LISTBOX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push 0x184
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, 0x416860
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xbc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc4]
and ecx, 3
push ebp
push eax
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_DlgDirListA]
push 0
push 0
push 0x18b
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add ecx, eax
mov edi, edx
mov dword [esp + 0x18], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
dec eax
lea ecx, [edx + ecx + 1]
mov dword [esp + 0x10], ecx
dec ebp
mov dword [esp + 0x14], eax
test eax, eax
ja 0x406352
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ebp
je 0x4068aa
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [0x415eb8], eax
je 0x4068aa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
mov dword [0x415ebc], eax
je 0x4068aa
cmp edi, ebp
je 0x40689e
lea esi, [edi + 0x270f]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
push ebp
push ebp
push 0x18b
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jle 0x406867
mov edx, dword [0x415eb4]
lea eax, [ecx + edx]
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
lea ebp, [eax + eax*2]
mov eax, dword [0x415ebc]
shl ebp, 2
add eax, ebp
push eax
push ecx
push 0x189
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edi, 0x416860
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0xbc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x415ebc]
lea edx, [ecx + ebp]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [edx + 0xc0], esi
mov edx, dword [0x415ebc]
push esi
push pe_nt_image_headers32
mov dword [edx + ebp + 0xc4], esi
mov eax, dword [0x415ebc]
push 3
push esi
mov dword [eax + ebp + 0xc8], esi
mov ecx, dword [0x415ebc]
push 1
push 0x80000000
mov dword [ecx + ebp + 0xcc], esi
mov edx, dword [0x415ebc]
mov al, byte [0x415ef8]
mov byte [edx + ebp + 0x40], al
mov ecx, dword [0x415ebc]
mov dl, byte [0x415efc]
mov byte [ecx + ebp + 0x80], dl
mov eax, dword [0x415ebc]
mov cl, byte [0x415f00]
mov byte [eax + ebp + 0xe0], cl
mov edx, dword [0x415ebc]
mov al, byte [0x415f04]
lea ecx, [esp + 0xd4]
push ecx
mov byte [edx + ebp + 0xd0], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, esi
je 0x40683a
lea edx, [esp + 0x88]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40683a
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov edx, dword [0x415ebc]
mov eax, dword [esp + 0xac]
mov dword [edx + ebp + 0xc4], eax
mov ecx, dword [0x415ebc]
mov edx, dword [esp + 0xa8]
mov dword [ecx + ebp + 0xc0], edx
mov eax, dword [0x415ebc]
mov ecx, dword [esp + 0x9c]
mov dword [eax + ebp + 0xcc], ecx
mov edx, dword [0x415ebc]
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x38]
mov dword [edx + ebp + 0xc8], eax
lea edx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0xbc]
push 0x100
push eax
lea ecx, [esp + 0x40]
push esi
push ecx
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edx, [esp + 0x48]
push 0x40
push edx
lea eax, [esp + 0x40]
push esi
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov eax, dword [0x415ebc]
lea ecx, [esp + 0x48]
lea edx, [esp + 0xbc]
push ecx
push edx
lea ecx, [eax + ebp + 0x80]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, esi
je 0x40683a
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push esi
push edx
push 0x200
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x34]
cmp eax, 0xa
jle 0x40683a
mov byte [eax + ebx], 0
push 1
lea eax, [ebx + 1]
push str.__12345X
push eax
call fcn.00405f40
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x40683a
inc esi
push 1
push str.JOB_NAME
lea ecx, [esi + ebx]
push ecx
call fcn.00405f40
add esp, 0xc
test eax, eax
jle 0x40679a
add eax, esi
add eax, ebx
cmp byte [eax], 0x22
jne 0x40679a
lea ecx, [eax + 1]
mov edx, ecx
mov al, byte [edx]
test al, al
je 0x40679a
cmp al, 0x22
je 0x40675e
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x406750
jmp 0x40679a
mov byte [edx], 0
mov eax, dword [0x415ebc]
mov edi, ecx
or ecx, 0xffffffff
lea esi, [eax + ebp + 0x40]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov byte [edx], 0x22
sub edx, ebx
mov esi, edx
push 1
lea ecx, [esi + ebx]
push str.ENTER_LANGUAGE
push ecx
call fcn.00405f40
add esp, 0xc
test eax, eax
jle 0x40683a
lea edx, [eax + esi]
mov al, byte [edx + ebx]
add edx, ebx
cmp al, 0x3d
je 0x4067cd
mov al, byte [edx + 1]
inc edx
test al, al
je 0x4067ce
cmp al, 0x3d
jne 0x4067c1
inc edx
mov al, byte [edx]
test al, al
je 0x4067e4
cmp al, 0x20
jne 0x4067e4
mov al, byte [edx + 1]
inc edx
test al, al
je 0x4067e4
cmp al, 0x20
je 0x4067d8
mov al, byte [edx]
test al, al
je 0x40683a
cmp al, 0x20
mov ecx, edx
jle 0x4067fc
mov al, byte [edx + 1]
inc edx
test al, al
je 0x40683a
cmp al, 0x20
jg 0x4067f0
mov al, byte [edx]
mov edi, ecx
mov byte [esp + 0x48], al
mov byte [edx], 0
mov eax, dword [0x415ebc]
or ecx, 0xffffffff
lea ebx, [eax + ebp + 0xd0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x48]
mov edi, dword [esp + 0x1c]
mov byte [edx], cl
test edi, edi
je 0x406845
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c0]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4064b9
xor ebp, ebp
mov ecx, dword [0x415eb4]
push esi
add ecx, eax
push ebx
mov dword [0x415eb4], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebp
je 0x406888
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x20]
dec eax
dec esi
cmp eax, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
ja 0x406498
push 0x416860
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [esp + 0x2c]
cmp esi, ebp
je 0x4068c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x415eb4], ebp
je 0x4068d0
cmp dword [0x415eb8], ebp
jne 0x4068e9
mov edx, dword [0x415eb8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x415eb8], ebp
mov dword [0x415ebc], ebp
mov ecx, dword [0x415e80]
lea eax, [esp + 0xbc]
push 0x100
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea eax, [esp + ecx + 0xbc]
dec ecx
test edx, edx
je 0x406937
mov dl, byte [eax - 1]
dec eax
cmp dl, 0x5c
je 0x406934
mov edx, ecx
dec ecx
test edx, edx
jne 0x406922
jmp 0x406937
mov byte [eax], 0
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret