Function at 0x404840
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x324
push ebx
push ebp
push esi
push edi
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [esp + 0x340]
lea ecx, [esp + 0x44]
push ecx
push ebp
push 0x148
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
xor edi, edi
mov esi, 0x4379a0
mov eax, dword [0x43799c]
mov ecx, dword [0x437990]
cmp eax, 1
je 0x4048a2
cmp eax, 2
je 0x4048a2
cmp eax, 4
je 0x4048a2
cmp eax, ebx
je 0x4048a2
cmp dword [0x437944], ebx
je 0x4048bb
cmp ecx, 2
je 0x4048c0
mov eax, ebp
push esi
shl eax, 4
add eax, ebp
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0x427240]
jmp 0x4048da
cmp ecx, 2
jne 0x4048d5
mov eax, ebp
push esi
shl eax, 4
add eax, ebp
lea ecx, [eax + eax*4]
lea edx, [ecx*8 + 0x427240]
push edx
jmp 0x4048db
push esi
lea eax, [esp + 0x48]
push eax
call fcn.00417a50
add esp, 8
cmp eax, ebx
jne 0x4048f8
add esi, 0xef4
inc edi
cmp esi, 0x488e8c
jl 0x40487c
jmp 0x4048fe
mov dword [0x43793c], edi
cmp eax, ebx
jne 0x40490f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
cmp dword [0x437990], 2
jne 0x40493d
mov ecx, dword [esp + 0x33c]
mov edx, dword [esp + 0x338]
push edi
push ebp
push ecx
push edx
call fcn.0040ac00
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
mov eax, 1
mov dword [0x427110], eax
mov dword [0x42710c], eax
call fcn.004163d0
lea eax, [esp + 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.LEXHBP.INI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x437984], ebx
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
mov dword [0x437980], ebx
and ecx, 3
mov dword [0x43797c], ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x43793c]
mov dword [0x437978], ebx
mov dword [0x437974], ebx
mov dword [0x437970], ebx
lea eax, [ecx + ecx*4]
mov dword [0x43796c], ebx
shl eax, 6
sub eax, ecx
mov dword [0x43798c], ebx
mov dword [0x437988], ebx
lea eax, [eax + eax*2]
shl eax, 2
mov ecx, dword [eax + 0x437b9c]
dec ecx
cmp ecx, 3
ja case.default.0x4049ef
jmp dword [ecx*4 + 0x405350]
mov ecx, dword [0x488e90]
lea eax, [esp + 0x44]
push 0x50
push eax
push 0x3d
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x33c]
lea edx, [esp + 0x44]
push edx
push 0x3f9
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [0x43793c]
lea edx, [esp + 0x94]
push ebx
push 6
lea eax, [ecx + ecx*4]
mov byte [esp + 0x18], 0xe0
shl eax, 6
sub eax, ecx
mov byte [esp + 0x19], 0x81
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 2
lea ecx, [eax + eax*2]
xor eax, eax
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], bl
lea edi, [ecx*4 + 0x4379a0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xec]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
shl eax, 4
and ecx, 3
add eax, ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*4]
xor eax, eax
lea edi, [ecx*8 + 0x427498]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov esi, 0x28
push ecx
push edx
push eax
lea ecx, [esp + 0xf8]
push 0x93
lea edx, [esp + 0xac]
push ecx
push edx
mov dword [esp + 0x38], esi
call fcn.004069f0
add esp, 0x20
cmp eax, ebx
jne 0x404af4
movsx eax, byte [esp + 0x22]
jmp 0x404af6
xor eax, eax
push 0x3e8
mov dword [0x488ea0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [esp + 0x14]
push 6
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xf8]
push 0x93
lea ecx, [esp + 0xac]
push eax
push ecx
mov byte [esp + 0x30], 0xe0
mov byte [esp + 0x31], 0x81
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], 2
mov byte [esp + 0x34], 2
mov byte [esp + 0x35], bl
mov dword [esp + 0x38], esi
call fcn.004069f0
add esp, 0x20
cmp eax, ebx
jne 0x404b60
movsx eax, byte [esp + 0x22]
jmp 0x404b62
xor eax, eax
mov ecx, dword [0x488ea0]
mov dword [0x488ea4], eax
cmp ecx, ebx
je 0x404fc9
cmp eax, ebx
je 0x404fc9
mov ecx, dword [0x43793c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push ebx
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea edx, [eax + 0x4380e8]
lea eax, [eax + 0x437a0c]
push edx
push eax
call esi
mov ecx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [0x437978], eax
lea edx, [ecx + ecx*4]
mov eax, dword [0x488ea4]
fild qword [esp + 0x10]
shl edx, 6
sub edx, ecx
lea edx, [edx + edx*2]
shl edx, 2
cmp eax, 0x30
fdiv dword [edx + 0x438110]
fmul dword [0x421368]
fsubr dword [0x421368]
fstp dword [0x488eb0]
je 0x404c40
cmp eax, 0x40
je 0x404c02
cmp eax, 0x70
je 0x404c8e
jmp 0x404ddc
lea ecx, [edx + 0x438284]
push ebx
lea edx, [edx + 0x437a0c]
push ecx
push edx
call esi
mov edx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [0x437978], eax
lea ecx, [edx + edx*4]
fild qword [esp + 0x10]
shl ecx, 6
sub ecx, edx
lea edx, [ecx + ecx*2]
shl edx, 2
fdiv dword [edx + 0x4382ac]
jmp 0x404c7c
lea eax, [edx + 0x4380e8]
push ebx
lea ecx, [edx + 0x437a0c]
push eax
push ecx
call esi
mov edx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [0x437978], eax
lea ecx, [edx + edx*4]
fild qword [esp + 0x10]
shl ecx, 6
sub ecx, edx
lea edx, [ecx + ecx*2]
shl edx, 2
fdiv dword [edx + 0x438110]
fmul dword [0x421368]
fsubr dword [0x421368]
fstp dword [0x488eb0]
lea eax, [edx + 0x438758]
push ebx
lea ecx, [edx + 0x437a0c]
push eax
push ecx
call esi
mov ecx, dword [0x43793c]
mov dword [0x43797c], eax
push ebx
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea edx, [eax + 0x4387dc]
lea eax, [eax + 0x437a0c]
push edx
push eax
call esi
mov ecx, dword [0x43793c]
mov dword [0x437980], eax
push ebx
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [eax + 0x438860]
lea edx, [eax + 0x437a0c]
push ecx
push edx
call esi
mov ecx, dword [0x43793c]
mov edi, dword [0x43797c]
mov edx, eax
mov dword [esp + 0x10], edi
lea eax, [ecx + ecx*4]
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
shl eax, 6
sub eax, ecx
mov edi, dword [0x437980]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
lea eax, [eax + eax*2]
mov dword [0x437984], edx
shl eax, 2
fdiv dword [eax + 0x438780]
fmul dword [0x421368]
fstp dword [0x488ec0]
fild qword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
fdiv dword [eax + 0x438804]
fmul dword [0x421368]
fstp dword [0x488ec4]
fild qword [esp + 0x10]
fdiv dword [eax + 0x438888]
fmul dword [0x421368]
fstp dword [0x488ec8]
fld dword [0x488ec0]
fcomp dword [0x488ec4]
fnstsw ax
test ah, 0x41
jne 0x404d90
fld dword [0x488ec0]
jmp 0x404d96
fld dword [0x488ec4]
fcomp dword [0x488ec8]
fnstsw ax
test ah, 0x41
jne 0x404dc6
fld dword [0x488ec0]
fcomp dword [0x488ec4]
fnstsw ax
test ah, 0x41
jne 0x404dbe
fld dword [0x488ec0]
jmp 0x404dcc
fld dword [0x488ec4]
jmp 0x404dcc
fld dword [0x488ec8]
fld dword [0x421368]
fsub st(1)
fstp dword [0x488ed0]
fstp st(0)
mov eax, dword [0x488ea0]
cmp eax, 0x50
je 0x404ead
cmp eax, 0x60
jne case.default.0x4049ef
lea eax, [ecx + ecx*4]
push ebx
shl eax, 6
sub eax, ecx
lea edi, [eax + eax*2]
shl edi, 2
lea eax, [edi + 0x4385bc]
lea ecx, [edi + 0x437a0c]
push eax
push ecx
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
mov ecx, dword [0x43793c]
push ebx
fdiv dword [edi + 0x4385e4]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea edi, [eax + eax*2]
shl edi, 2
lea edx, [edi + 0x438640]
lea eax, [edi + 0x437a0c]
push edx
push eax
fmul dword [0x421368]
fstp dword [0x488eb4]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea ecx, [edi + 0x4386c4]
push ebx
lea edx, [edi + 0x437a0c]
push ecx
fdiv dword [edi + 0x438668]
push edx
fmul dword [0x421368]
fstp dword [0x488eb8]
call esi
mov ecx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
fdiv dword [eax*4 + 0x4386ec]
jmp 0x40524d
lea eax, [ecx + ecx*4]
push ebx
shl eax, 6
sub eax, ecx
lea edi, [eax + eax*2]
shl edi, 2
lea ecx, [edi + 0x438420]
lea edx, [edi + 0x437a0c]
push ecx
push edx
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
mov ecx, dword [0x43793c]
push ebx
fdiv dword [edi + 0x438448]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea edi, [eax + eax*2]
shl edi, 2
lea eax, [edi + 0x4384a4]
lea ecx, [edi + 0x437a0c]
push eax
push ecx
fmul dword [0x421368]
fstp dword [0x488eb4]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea edx, [edi + 0x438528]
push ebx
lea eax, [edi + 0x437a0c]
push edx
fdiv dword [edi + 0x4384cc]
push eax
fmul dword [0x421368]
fstp dword [0x488eb8]
call esi
mov ecx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea ecx, [eax + eax*2]
fdiv dword [ecx*4 + 0x438550]
fmul dword [0x421368]
fstp dword [0x488ebc]
fld dword [0x488eb4]
fcomp dword [0x488eb8]
fnstsw ax
test ah, 0x41
jne 0x404f89
fld dword [0x488eb4]
jmp 0x404f8f
fld dword [0x488eb8]
fcomp dword [0x488ebc]
fnstsw ax
test ah, 0x41
jne 0x4052aa
fld dword [0x488eb4]
fcomp dword [0x488eb8]
fnstsw ax
test ah, 0x41
jne 0x404fbe
fld dword [0x488eb4]
jmp 0x4052b0
fld dword [0x488eb8]
jmp 0x4052b0
mov edx, dword [esp + 0x33c]
mov eax, dword [esp + 0x338]
push ebp
push edx
push eax
call fcn.00405620
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProfileIntA]
lea ecx, [eax + 0x4380e8]
push ebx
lea edx, [eax + 0x437a0c]
push ecx
push edx
call esi
mov edx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [0x437978], eax
lea ecx, [edx + edx*4]
push ebx
fild qword [esp + 0x14]
shl ecx, 6
sub ecx, edx
lea ecx, [ecx + ecx*2]
shl ecx, 2
fdiv dword [ecx + 0x438110]
lea eax, [ecx + 0x438420]
lea ecx, [ecx + 0x437a0c]
push eax
push ecx
fmul dword [0x421368]
fsubr dword [0x421368]
fstp dword [0x488eb0]
call esi
mov ecx, dword [0x43793c]
mov dword [0x43797c], eax
push ebx
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea edx, [eax + 0x4384a4]
lea eax, [eax + 0x437a0c]
push edx
push eax
call esi
mov ecx, dword [0x43793c]
mov dword [0x437980], eax
push ebx
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [eax + 0x438528]
lea edx, [eax + 0x437a0c]
push ecx
push edx
call esi
mov edx, dword [0x43793c]
mov edi, dword [0x43797c]
mov dword [esp + 0x10], edi
mov edi, dword [0x437980]
lea ecx, [edx + edx*4]
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
shl ecx, 6
sub ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [0x437984], eax
fild qword [esp + 0x10]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x10], eax
shl ecx, 2
fxch st(1)
fdiv dword [ecx + 0x438448]
fxch st(1)
mov dword [esp + 0x14], ebx
fdiv dword [ecx + 0x4384cc]
fild qword [esp + 0x10]
fxch st(2)
fmul dword [0x421368]
fxch st(2)
fdiv dword [ecx + 0x438550]
fxch st(1)
fmul dword [0x421368]
fxch st(2)
fst dword [0x488ec0]
fxch st(2)
fstp dword [0x488ec4]
fxch st(1)
fcomp dword [0x488ec4]
fmul dword [0x421368]
fnstsw ax
test ah, 0x41
fstp dword [0x488ec8]
jne 0x40514c
fld dword [0x488ec0]
jmp 0x405152
fld dword [0x488ec4]
fcomp dword [0x488ec8]
fnstsw ax
test ah, 0x41
jne 0x405182
fld dword [0x488ec0]
fcomp dword [0x488ec4]
fnstsw ax
test ah, 0x41
jne 0x40517a
fld dword [0x488ec0]
jmp 0x405188
fld dword [0x488ec4]
jmp 0x405188
fld dword [0x488ec8]
fld dword [0x421368]
lea eax, [edx + edx*4]
push ebx
shl eax, 6
sub eax, edx
fsub st(1)
lea edi, [eax + eax*2]
shl edi, 2
fstp dword [0x488ed0]
lea eax, [edi + 0x438284]
lea ecx, [edi + 0x437a0c]
push eax
push ecx
fstp st(0)
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
mov ecx, dword [0x43793c]
push ebx
fdiv dword [edi + 0x4382ac]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea edi, [eax + eax*2]
shl edi, 2
lea edx, [edi + 0x438308]
lea eax, [edi + 0x437a0c]
push edx
push eax
fmul dword [0x421368]
fstp dword [0x488eb4]
call esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea ecx, [edi + 0x43838c]
push ebx
lea edx, [edi + 0x437a0c]
push ecx
fdiv dword [edi + 0x438330]
push edx
fmul dword [0x421368]
fstp dword [0x488eb8]
call esi
mov ecx, dword [0x43793c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x10]
lea eax, [ecx + ecx*4]
shl eax, 6
sub eax, ecx
lea eax, [eax + eax*2]
fdiv dword [eax*4 + 0x4383b4]
fmul dword [0x421368]
fstp dword [0x488ebc]
fld dword [0x488eb4]
fcomp dword [0x488eb8]
fnstsw ax
test ah, 0x41
jne 0x405274
fld dword [0x488eb4]
jmp 0x40527a
fld dword [0x488eb8]
fcomp dword [0x488ebc]
fnstsw ax
test ah, 0x41
jne 0x4052aa
fld dword [0x488eb4]
fcomp dword [0x488eb8]
fnstsw ax
test ah, 0x41
jne 0x4052a2
fld dword [0x488eb4]
jmp 0x4052b0
fld dword [0x488eb8]
jmp 0x4052b0
fld dword [0x488ebc]
fld dword [0x421368]
fsub st(1)
fstp dword [0x488ecc]
fstp st(0)
jmp case.default.0x4049ef
call fcn.00415b40
call fcn.00415ee0
jmp case.default.0x4049ef
lea ecx, [esp + 0x134]
push ecx
call fcn.00403b50
add esp, 4
cmp dword [0x437978], ebx
jbe 0x4052ec
mov dword [0x427110], ebx
cmp dword [0x43797c], ebx
ja 0x405304
cmp dword [0x437980], ebx
ja 0x405304
cmp dword [0x437984], ebx
jbe 0x40530a
mov dword [0x42710c], ebx
push ebp
call fcn.00405360
mov ecx, dword [0x43799c]
add esp, 4
cmp ecx, 1
jne 0x405327
cmp dword [esp + 0x344], ebx
je 0x405340
mov edx, dword [esp + 0x33c]
push eax
mov eax, dword [esp + 0x33c]
push edx
push eax
call fcn.00405620
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x324
ret