Function at 0x403990
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562834
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5bfe54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x434], eax
call fcn.00411400
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00544eb0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00544eb0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a52
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fd0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
mov edi, dword [ebp - 0x230]
mov esi, dword [ebp - 0x220]
setae bl
cmovae edx, edi
test esi, esi
je 0x403abe
lea eax, [esi - 1]
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x403aba
nop dword [eax]
cmp ecx, edx
je 0x403abe
dec ecx
cmp byte [ecx], 0x5c
jne 0x403ab0
sub ecx, edx
jmp 0x403ac1
or ecx, 0xffffffff
mov dword [ebp - 0x248], 0
cmp esi, ecx
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0xf
cmovb ecx, esi
mov byte [ebp - 0x248], 0
test bl, bl
mov byte [ebp - 4], 1
push ecx
cmovne eax, edi
lea ecx, [ebp - 0x248]
push eax
call fcn.00403fd0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x403b48
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e29
push edx
push ecx
call fcn.00542ab2
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 4], 3
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b95
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00403fd0
cmp dword [ebp - 0x234], 0x10
lea ecx, [ebp - 0x248]
mov edi, dword [ebp - 0x450]
lea edx, [ebp - 0x450]
cmovae ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x43c], 0x10
mov esi, dword [ebp - 0x440]
setae bh
cmovae edx, edi
cmp esi, dword [ebp - 0x238]
jne 0x403c45
sub esi, 4
jb 0x403c02
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x403c07
add edx, 4
add ecx, 4
sub esi, 4
jae 0x403bf1
cmp esi, 0xfffffffc
je 0x403c3b
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x403c34
cmp esi, 0xfffffffd
je 0x403c3b
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x403c34
cmp esi, 0xfffffffe
je 0x403c3b
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x403c34
cmp esi, 0xffffffff
je 0x403c3b
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x403c3b
sbb eax, eax
or eax, 1
jmp 0x403c3d
xor eax, eax
test eax, eax
jne 0x403c45
xor bl, bl
jmp 0x403c47
mov bl, 1
test bh, bh
je 0x403c7a
mov ecx, dword [ebp - 0x43c]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x403c70
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e2e
push ecx
push edi
call fcn.00542ab2
add esp, 8
test bl, bl
je 0x403c99
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401c10
push 0xc
call fcn.004075e1
add esp, 4
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x403ccf
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00411d55
mov esi, eax
jmp 0x403cd1
xor esi, esi
push 0x574410
mov byte [ebp - 4], 3
call fcn.0041a6df
mov edi, dword [ebp - 0x434]
mov ecx, edi
push 0x5a3528
call fcn.0041dcb9
push 0x1e8
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00544eb0
add esp, 0xc
lea ecx, [ebp - 0x430]
push 0
push 0x66
call fcn.004246c2
mov dword [ebp - 0x2dc], 0
xor ecx, ecx
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov word [ebp - 0x2d0], 0x100
nop
mov al, byte [ecx + 0x5a3a08]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x35d], al
test al, al
jne 0x403d40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c8]
mov dword [ebp - method.CDialogEx.virtual_0], 0x5a387c
mov dword [ebp - method.CThread.virtual_0], 0x5a3864
call fcn.004090da
mov dword [ebp - method.CListBox.virtual_0], vtable.CListBox.0
mov byte [ebp - 4], 8
call fcn.00424f45
call fcn.00424f45
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 9
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0041e489
test esi, esi
je 0x403dc5
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
call fcn.0041f44b
lea ecx, [ebp - 0x430]
call fcn.00403e40
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x403e0b
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e2e
push edx
push ecx
call fcn.00542ab2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542aa4
mov esp, ebp
pop ebp
ret
call fcn.0054768f
call fcn.0054768f
int3