Function at 0x408f40
Capabilities:
Get common file path
Hide graphical window

Disassembly:
sub esp, 0x498
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x7f02
mov esi, ecx
push ebx
or ebp, 0xffffffff
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.0041e310
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00413770
lea ecx, [esp + 0x2a0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x30]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jle 0x40919b
jmp 0x408fac
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x408fbd
test eax, eax
jl 0x408fbd
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + eax*4]
jmp 0x408fbf
xor edi, edi
mov eax, dword [edi + 0x5c]
push 0x2e
push eax
call fcn.004989e0
add esp, 8
test eax, eax
je 0x409186
push 0x4be640
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409186
mov ecx, dword [edi + 0x5c]
lea edx, [esp + 0x2a0]
push ecx
lea eax, [esp + 0x1a0]
push edx
push eax
call fcn.0043c6e0
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
lea eax, [esp + 0x19c]
push ecx
push edx
push eax
xor ebp, ebp
call fcn.0043c5a0
add esp, 0xc
test eax, eax
je 0x409040
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
cmp ecx, eax
jne 0x409040
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 0x38]
cmp edx, eax
jne 0x409040
mov ebp, 1
test ebp, ebp
je 0x40904b
xor ebp, ebp
jmp 0x4090fd
test ebx, ebx
jne 0x4090b0
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x48]
push 0x50
push eax
push 0xa1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x90]
lea edx, [esp + 0x48]
push ebx
push edx
push eax
push ecx
call fcn.0043ff40
add esp, 0x10
mov ebx, eax
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x82
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7f8a
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, esi
call fcn.0041a530
mov edx, dword [edi + 0x5c]
push edx
push 0x71
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x90]
push 0x4cb0dc
push ecx
mov ecx, dword [edi + 0x58]
push ebx
lea eax, [esp + 0x1a8]
push edx
push eax
lea edx, [esi + 0x6f4]
push ecx
push edx
call fcn.004094f0
add esp, 0x1c
mov ebp, eax
test ebp, ebp
jne 0x409186
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x3a4]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dx, word [0x4be63c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9a]
mov word [esp + 0x98], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x99]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x98]
push 0x4be63c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
lea eax, [esp + 0x9c]
push 1
lea ecx, [esp + 0x3ac]
push eax
push ecx
call fcn.004059d0
add esp, 0x10
mov ebp, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x408fa8
test ebx, ebx
je 0x4091a6
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, esi
call fcn.0041a5b0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x28]
call fcn.0041e3a0
xor eax, eax
pop edi
test ebp, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x498
ret