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

Disassembly:
sub esp, 0x49c
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f02
mov esi, ecx
push ebx
or edi, 0xffffffff
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
call fcn.00424d70
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00417eb0
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 + 0x10], ebx
mov dword [esp + 0xc], eax
jle 0x409295
push ebp
jmp 0x40909c
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x4090ad
test eax, eax
jl 0x4090ad
mov edx, dword [esp + 0x30]
mov ebp, dword [edx + eax*4]
jmp 0x4090af
xor ebp, ebp
mov eax, dword [ebp + 0x68]
push 0x2e
push eax
call fcn.004bea30
add esp, 8
test eax, eax
je 0x409274
push 0x4e0508
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409274
mov eax, dword [ebp + 0x68]
lea ecx, [esp + 0x2a4]
push eax
lea edx, [esp + 0x1a4]
push ecx
push edx
call fcn.0044a2d0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x1b0]
push ecx
push edx
call fcn.0044a190
add esp, 0x18
test eax, eax
je 0x409135
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
cmp eax, ecx
jne 0x409135
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x24]
cmp ecx, eax
jne 0x409135
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x44]
cmp edx, eax
je 0x4091f2
test ebx, ebx
jne 0x40919a
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x4c]
push 0x50
push eax
push 0xa1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x200]
lea edx, [esp + 0x4c]
push ebx
push edx
push eax
push ecx
call fcn.004539e0
add esp, 0x10
mov ebx, eax
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x208
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.00420450
mov edx, dword [ebp + 0x68]
push edx
push 0x1fb
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x200]
push 0x4eba3c
push ecx
mov ecx, dword [ebp + 0x64]
push ebx
lea eax, [esp + 0x1ac]
push edx
push eax
lea edx, [esi + 0x9a0]
push ecx
push edx
call fcn.00409760
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x409274
mov ecx, dword [esi + 0x200]
lea eax, [esp + 0x3a8]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dx, word [0x4e0504]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9e]
mov word [esp + 0x9c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x9d]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x9c]
push 0x4e0504
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [esp + 0xa0]
push 1
lea ecx, [esp + 0x3b0]
push eax
push ecx
call fcn.00405900
add esp, 0x10
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x409098
test ebx, ebx
pop ebp
je 0x409295
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, esi
call fcn.004204e0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x28]
call fcn.00424ec0
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
add esp, 0x49c
ret