Function at 0x405590
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x476322
mov eax, dword fs:[0]
push eax
sub esp, 0xdf4
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0xdf0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0xe08]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0xe14], ebx
call fcn.00414990
push 0x480b3c
lea ecx, [esp + 0x38]
mov byte [esp + 0xe14], 1
call fcn.0040a4d0
mov esi, eax
push 0x480b48
lea ecx, [esp + 0x34]
mov byte [esp + 0xe14], 2
call fcn.0040a4d0
mov edi, eax
mov byte [esp + 0xe10], 3
call fcn.00413340
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.00408ae0
add esp, 0xc
push esi
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0xe1c], 4
call fcn.00408a20
add esp, 0xc
mov esi, eax
mov byte [esp + 0xe10], 5
call fcn.00413500
push eax
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00408ae0
add esp, 0xc
mov byte [esp + 0xe10], 6
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.004161a0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0xe1c], 7
call fcn.00408ea0
mov ebp, 0x10
cmp dword [esp + 0x58], ebp
jb 0x4056c2
mov edx, dword [esp + 0x44]
push edx
call fcn.00434485
add esp, 4
mov byte [esp + 0xe10], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe10], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe10], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40574a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe10], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe10], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40579a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0x1c], 0x7b
call fcn.00408f80
push 0xffffffffffffffff
mov ecx, eax
lea esi, [esp + 0x44]
lea edx, [esp + 0xc0]
call fcn.00408d20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0xe1c], 8
call fcn.00408ea0
mov byte [esp + 0xe10], 1
cmp dword [esp + 0x58], ebp
jb 0x4057f8
mov eax, dword [esp + 0x44]
push eax
call fcn.00434485
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0xc0]
mov byte [esp + 0x18], 0x7d
call fcn.00409030
inc eax
push eax
xor ecx, ecx
lea esi, [esp + 0x44]
mov edx, edi
call fcn.00408d20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0xe1c], 9
call fcn.00408ea0
mov byte [esp + 0xe10], 1
cmp dword [esp + 0x58], ebp
jb 0x40584b
mov edx, dword [esp + 0x44]
push edx
call fcn.00434485
add esp, 4
lea eax, [esp + 0x12c]
push eax
call fcn.0041f840
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], ebx
mov byte [esp + 0xe10], 0xc
mov edx, dword [esp + 0xc0]
cmp dword [esp + 0xd4], ebp
jae 0x405883
lea edx, [esp + 0xc0]
mov eax, edx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405898
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.00409360
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x178]
mov byte [esp + 0xe1c], 0xd
call fcn.00408ea0
mov eax, dword [esp + 0x170]
cmp dword [esp + 0x184], ebp
jae 0x4058df
lea eax, [esp + 0x170]
mov edx, dword [esp + 0x180]
lea ecx, [edx + eax]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0041f900
test al, al
sete byte [esp + 0x14]
mov byte [esp + 0xe10], 0xc
cmp dword [esp + 0x58], ebp
jb 0x40591f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00434485
add esp, 4
lea ecx, [esp + 0x1c]
cmp byte [esp + 0x14], bl
je 0x405975
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xe14], bl
call fcn.004150c0
cmp dword [esp + 0xd4], ebp
jb 0x4061f8
mov eax, dword [esp + 0xc0]
push eax
call fcn.00434485
add esp, 4
jmp 0x4061f8
push 0x480bd8
call fcn.00423dc0
lea ecx, [esp + 0x1c]
cmp eax, 0x49f898
jne 0x4059d6
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xe14], bl
call fcn.004150c0
cmp dword [esp + 0xd4], ebp
jb 0x4061f8
mov edx, dword [esp + 0xc0]
push edx
call fcn.00434485
add esp, 4
jmp 0x4061f8
push 0x480be0
call fcn.00423dc0
lea ecx, [esp + 0x1c]
cmp eax, 0x49f898
jne 0x405a37
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0xe14], bl
call fcn.004150c0
cmp dword [esp + 0xd4], ebp
jb 0x4061f8
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00434485
add esp, 4
jmp 0x4061f8
push 0x480bec
call fcn.00423dc0
cmp eax, 0x49f898
jne 0x405a76
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea edx, [esp + 0x5c]
mov byte [esp + 0xe10], bl
push edx
jmp 0x4061e7
push 0x480bd8
lea ebx, [esp + 0x20]
call fcn.00423bd0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x114]
call fcn.00408cb0
push 0x480be0
mov byte [esp + 0xe14], 0xe
call fcn.00423bd0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xdc]
call fcn.00408cb0
push 0x480bec
mov byte [esp + 0xe14], 0xf
call fcn.00423bd0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xf8]
call fcn.00408cb0
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0xc0e]
mov ebx, 0x10
mov byte [esp + 0xe18], bl
push ecx
mov word [esp + 0xc10], ax
call fcn.00458440
add esp, 0xc
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x4b6]
push eax
mov word [esp + 0x4b8], dx
call fcn.00458440
add esp, 0xc
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x4f6]
push edx
mov word [esp + 0x4f8], cx
call fcn.00458440
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5f6]
push ecx
mov word [esp + 0x5f8], ax
call fcn.00458440
add esp, 0xc
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x576]
push eax
mov word [esp + 0x578], dx
call fcn.00458440
add esp, 0xc
lea ecx, [esp + 0x5ec]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x480204
lea edx, [esp + 0x5f0]
push 0x104
push edx
call fcn.0045456e
add esp, 0xc
lea eax, [esp + 0x5ec]
push eax
push 0x40
lea ecx, [esp + 0x574]
push ecx
push 0x480f44
push 0x48096c
call fcn.004133b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0xf8]
cmp dword [esp + 0x10c], ebx
jae 0x405be7
lea eax, [esp + 0xf8]
mov ecx, dword [esp + 0x108]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x40
lea edx, [esp + 0x4f0]
push edx
push ecx
push eax
push 0
push 0xfde9
call ebp
lea ecx, [esp + 0x4ec]
lea eax, [esp + 0x56c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405c3d
test dx, dx
je 0x405c39
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405c3d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405c17
xor eax, eax
jmp 0x405c42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405c91
lea ecx, [esp + 0xf4]
call fcn.00408cf0
lea ecx, [esp + 0xd8]
call fcn.00408cf0
lea ecx, [esp + 0x110]
call fcn.00408cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea edx, [esp + 0x5c]
push edx
jmp 0x4061df
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x7fe]
push ecx
mov word [esp + 0x800], ax
call fcn.00458440
add esp, 0xc
push 0x208
call fcn.00434490
add esp, 4
push 0x4806b8
lea ecx, [esp + 0x3c]
call fcn.0040a4d0
mov esi, eax
push 0x4806c4
lea ecx, [esp + 0x34]
mov byte [esp + 0xe14], 0x11
call fcn.0040a4d0
mov edi, eax
mov byte [esp + 0xe10], 0x12
call fcn.004133b0
push eax
lea edx, [esp + 0x38]
push edi
push edx
call fcn.00408ae0
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xe1c], 0x13
call fcn.00408a20
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00409f80
lea ecx, [esp + 0x30]
call fcn.00409f80
lea ecx, [esp + 0x38]
mov byte [esp + 0xe10], 0x17
call fcn.00409f80
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a340
mov ebx, eax
lea edi, [esp + 0x7f4]
call fcn.004176c0
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00409de0
push ebx
call fcn.00434485
mov eax, dword [esp + 0xe0]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0xf0], esi
jae 0x405d8b
lea eax, [esp + 0xdc]
mov ecx, dword [esp + 0xec]
push 0x20
lea edx, [esp + 0x4b0]
push edx
push ecx
push eax
push 0
push 0xfde9
call ebp
mov eax, dword [esp + 0x114]
cmp dword [esp + 0x128], esi
jae 0x405dbe
lea eax, [esp + 0x114]
mov ecx, dword [esp + 0x124]
push 0x100
lea edx, [esp + 0xc08]
push edx
push ecx
push eax
push 0
push 0xfde9
call ebp
lea edx, [esp + 0x1c4]
push edx
call fcn.00414990
mov ebp, 0x482474
mov dword [esp + 0x1bc], ebp
lea eax, [esp + 0xc04]
push eax
lea ecx, [esp + 0x7f8]
push ecx
lea edi, [esp + 0x1c4]
mov byte [esp + 0xe18], 0x18
call fcn.004160e0
test eax, eax
jne 0x405e8e
lea edx, [esp + 0x1c4]
mov byte [esp + 0xe10], 0x17
push edx
mov dword [esp + 0x1c0], ebp
call fcn.004150c0
lea ecx, [esp + 0x18]
call fcn.00409f80
lea ecx, [esp + 0xf4]
call fcn.00408cf0
lea ecx, [esp + 0xd8]
call fcn.00408cf0
lea ecx, [esp + 0x110]
call fcn.00408cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea eax, [esp + 0x5c]
push eax
jmp 0x4061df
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa06]
mov byte [esp + 0xe18], 0x19
push edx
mov word [esp + 0xa08], cx
call fcn.00458440
add esp, 0xc
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x436]
push ecx
mov word [esp + 0x438], ax
call fcn.00458440
mov edx, dword [0x480708]
mov eax, dword [0x48070c]
add esp, 0xc
push 0x38
lea ecx, [esp + 0x478]
push 0
push ecx
mov dword [esp + 0x478], edx
mov dword [esp + 0x47c], eax
call fcn.00458440
add esp, 0xc
xor ebx, ebx
lea edi, [esp + 0x9fc]
call fcn.004176c0
lea edx, [esp + 0x5ec]
push edx
push 0x20
lea eax, [esp + 0x434]
push eax
push 0x480f44
push 0x480240
call fcn.004133b0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp cx, word [esp + 0x42c]
jne 0x405fd4
call fcn.00413030
test eax, eax
je 0x405f5e
mov esi, eax
call fcn.00418be0
call fcn.00413030
test eax, eax
je 0x405f6e
mov esi, eax
call fcn.00419050
push 0x480708
lea ecx, [esp + 0x40]
call fcn.0040a4d0
mov esi, eax
mov byte [esp + 0xe10], 0x1a
call fcn.00413030
push eax
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00408ae0
add esp, 0xc
mov byte [esp + 0xe10], 0x1b
mov esi, dword [eax]
test esi, esi
je 0x405fad
call fcn.00419050
lea ecx, [esp + 0x2c]
call fcn.00409f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe10], 0x19
call fcn.00409f80
call fcn.00413030
test eax, eax
je 0x406027
mov ecx, eax
jmp 0x406022
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x470]
push 0x20
push ecx
call fcn.0045456e
lea edx, [esp + 0x438]
add esp, 0xc
test edx, edx
je 0x406005
mov esi, edx
call fcn.00418be0
call fcn.00419050
lea eax, [esp + 0x46c]
test eax, eax
je 0x406017
mov esi, eax
call fcn.00419050
lea ecx, [esp + 0x42c]
test ecx, ecx
je 0x406027
call fcn.00418e20
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0x1005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0x480bf4
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push 0x480c04
push 0
push eax
call esi
push 0
push 0x480c28
push 0
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x74
mov esi, eax
push 0x100
push esi
call edi
push 0
push 0x74
push 0x101
push esi
call edi
lea edx, [esp + 0x4ac]
push edx
lea eax, [esp + 0x476]
push 0x1d
push eax
call fcn.004544ff
add esp, 0xc
call fcn.004130a0
push eax
lea ecx, [esp + 0x7f8]
lea esi, [esp + 0xa00]
lea ebx, [esp + 0x4b0]
call fcn.00418a40
lea ecx, [esp + 0x7f4]
push ecx
call fcn.004130a0
mov ebx, eax
lea edi, [esp + 0x4b0]
call fcn.00418f00
lea edx, [esp + 0x7f4]
push edx
mov ebx, 0x480628
lea edi, [esp + 0x470]
call fcn.00418f00
mov eax, dword [0x4a2600]
shr eax, 7
test al, 1
je 0x40612e
call fcn.00401310
test al, al
jne 0x40612e
lea ecx, [esp + 0x7f4]
push ecx
call fcn.004130a0
mov ebx, eax
mov edx, esi
lea ecx, [esp + 0x4b0]
call fcn.00418c90
lea edx, [esp + 0x5ec]
push edx
lea eax, [esp + 0x4f0]
push eax
push 0x48096c
call fcn.004133b0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
call esi
lea ecx, [esp + 0x5ec]
push ecx
lea edx, [esp + 0x4b0]
push edx
push 0x480240
call fcn.004133b0
push eax
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x1c4]
mov byte [esp + 0xe10], 0x17
push eax
mov dword [esp + 0x1c0], ebp
call fcn.004150c0
lea ecx, [esp + 0x18]
call fcn.00409f80
lea ecx, [esp + 0xf4]
call fcn.00408cf0
lea ecx, [esp + 0xd8]
call fcn.00408cf0
lea ecx, [esp + 0x110]
call fcn.00408cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe10], 0xa
call fcn.004237d0
lea edi, [esp + 0x12c]
call fcn.00406220
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xe14], 0
call fcn.004150c0
lea ecx, [esp + 0xbc]
call fcn.00408cf0
mov ecx, dword [esp + 0xe08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdf0]
xor ecx, esp
call fcn.004541a5
add esp, 0xe00
ret