Function at 0x54e890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffa18
mov eax, 0x56498f
xor edx, edx
push ebx
push esi
push edi
mov esi, str._fsbpp
mov dword [ebp - 0x94], 0x6d33b4
mov dword [ebp - 0x90], esp
mov dword [ebp - 0x98], eax
mov word [ebp - 0x8c], 0
mov dword [ebp - 0x80], edx
lea ebx, [ebp - 0xc]
mov ecx, dword fs:[0]
mov dword [ebp - 0x9c], ecx
lea eax, [ebp - 0x9c]
mov dword fs:[0], eax
mov eax, dword [0x6d15b4]
test eax, eax
je 0x54f354
mov edi, eax
cmp byte [0x6d1858], 0
je 0x54e916
mov eax, dword [ebp - 0x9c]
mov dword fs:[0], eax
jmp 0x54f361
mov byte [0x6d1858], 1
mov word [ebp - 0x8c], 8
lea eax, [esi + 0x14e]
call fcn.00408c54
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
inc dword [ebp - 0x80]
call fcn.005bef00
dec dword [ebp - 0x80]
mov eax, dword [ebp - 4]
test eax, eax
je 0x54e94e
call fcn.00408920
mov word [ebp - 0x8c], 0x20
push esi
push edi
mov esi, 0x6d185c
lea edi, [ebp - 0x4e8]
mov ecx, 0x10c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov word [ebp - 0x8c], 0x20
push 0
lea eax, [ebp - 0x4e8]
push eax
push edi
mov edx, dword [edi]
call dword [edx + 0x6c]
test eax, eax
jl 0x54f2ff
mov word [ebp - 0x8c], 0x2c
lea eax, [esi + 0x204]
call fcn.00408c54
mov dword [ebp - 8], eax
xor edx, edx
inc dword [ebp - 0x80]
lea eax, [ebp - 0x2e8]
mov word [ebp - 0x8c], 0x38
mov word [ebp - 0x8c], 0x44
mov dword [ebx], edx
inc dword [ebp - 0x80]
mov word [ebp - 0x8c], 0x38
mov word [ebp - 0x8c], 0x50
call fcn.00408d58
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00401834
lea eax, [ebp - 0x14]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x18]
lea edx, [esi + 0x122]
call fcn.004016d4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4e8]
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x20]
pop eax
call fcn.00401834
lea eax, [ebp - 0x20]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x24]
lea edx, [esi + 0x128]
call fcn.004016d4
lea edi, [ebp - 0x24]
inc dword [ebp - 0x80]
mov eax, dword [edi]
test eax, eax
je 0x54ea4b
inc dword [eax]
mov eax, dword [ebx]
test eax, eax
je 0x54ea56
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x54ea69
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x54ea81
call fcn.00408920
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54ea90
call fcn.00408920
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x54ea9f
call fcn.00408920
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54eaae
call fcn.00408920
dec dword [ebp - 0x80]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x54eabd
call fcn.00408920
mov eax, ebx
call fcn.005bef00
mov word [ebp - 0x8c], 0xa4
lea ecx, [ebp - 0x28]
lea edx, [esi + 0x216]
lea eax, [ebp - 8]
call fcn.004016d4
lea edi, [ebp - 0x28]
inc dword [ebp - 0x80]
mov eax, dword [edi]
test eax, eax
je 0x54eaec
inc dword [eax]
mov eax, dword [ebx]
test eax, eax
je 0x54eaf7
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x28], 0
je 0x54eb0c
mov eax, dword [ebp - 0x28]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
mov dx, word [ebp - 0xe8]
and dx, 0xffff
movzx ecx, dx
push ecx
mov eax, dword [ebp - 0xe8]
shr eax, 0x10
movzx edx, ax
push edx
mov cx, word [ebp - 0xe4]
and cx, 0xffff
movzx eax, cx
push eax
mov edx, dword [ebp - 0xe4]
shr edx, 0x10
movzx ecx, dx
push ecx
lea eax, [esi + 0x250]
push eax
lea edx, [ebp - 0x5e8]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x18
mov word [ebp - 0x8c], 0xbc
lea eax, [ebp - 0x5e8]
call fcn.00408d58
mov edi, eax
mov dword [ebp - 0x2c], edi
inc dword [ebp - 0x80]
test edi, edi
je 0x54ebf5
cmp dword [ebx], 0
jne 0x54eb8e
xor eax, eax
jmp 0x54ebb6
mov edx, dword [ebx]
cmp dword [edx], 0
jne 0x54ebaf
mov edi, dword [ebx]
test edi, edi
jne 0x54eb9f
xor eax, eax
jmp 0x54ebb6
cmp dword [edi + 4], 0
je 0x54ebaa
mov eax, dword [edi + 4]
jmp 0x54ebb6
lea eax, [edi + 8]
jmp 0x54ebb6
mov eax, ebx
call fcn.0040a360
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0
jne 0x54ebcc
xor edx, edx
jmp 0x54ebec
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0
je 0x54ebe3
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 4]
jmp 0x54ebec
mov edx, dword [ebp - 0xa0]
add edx, 8
mov eax, dword [ebx]
call fcn.00408ec4
mov dword [ebx], eax
dec dword [ebp - 0x80]
cmp dword [ebp - 0x2c], 0
je 0x54ec06
mov eax, dword [ebp - 0x2c]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
mov eax, ebx
call fcn.005bef00
xor edx, edx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], edx
push ecx
lea eax, [ebp - 0x9e8]
lea edx, [ebp - 0x4e8]
push eax
push 0x3ff
push 0
push edx
push 0
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x54eca4
push 0x3ff
lea edx, [ebp - 0xde8]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea ecx, [esi + 0x263]
push ecx
lea eax, [ebp - 0xde8]
push eax
call fcn.005642b0
add esp, 8
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x9e8]
lea eax, [ebp - 0x4e8]
push edx
push ecx
push 0x3ff
push 0
push eax
lea edx, [ebp - 0xde8]
push edx
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x54ecff
push 0x3ff
lea edx, [ebp - 0x11e8]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea ecx, [esi + 0x26c]
push ecx
lea eax, [ebp - 0x11e8]
push eax
call fcn.005642b0
add esp, 8
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x9e8]
lea eax, [ebp - 0x4e8]
push edx
push ecx
push 0x3ff
push 0
push eax
lea edx, [ebp - 0x11e8]
push edx
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x54ed5a
push 0x3ff
lea edx, [ebp - 0x15e8]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea ecx, [esi + 0x276]
push ecx
lea eax, [ebp - 0x15e8]
push eax
call fcn.005642b0
add esp, 8
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x9e8]
lea eax, [ebp - 0x4e8]
push edx
push ecx
push 0x3ff
push 0
push eax
lea edx, [ebp - 0x15e8]
push edx
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
setne al
and eax, 1
test al, al
je 0x54ef85
mov word [ebp - 0x8c], 0xd4
lea ecx, [ebp - 0x30]
lea edx, [esi + 0x288]
lea eax, [ebp - 8]
call fcn.004016d4
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x9e8]
push edx
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x38]
pop eax
call fcn.00401834
lea eax, [ebp - 0x38]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x3c]
lea edx, [esi + 0x246]
call fcn.004016d4
lea edi, [ebp - 0x3c]
inc dword [ebp - 0x80]
cmp dword [edi], 0
je 0x54edc3
mov eax, dword [edi]
inc dword [eax]
cmp dword [ebx], 0
je 0x54edcf
mov eax, dword [ebx]
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x3c], 0
je 0x54ede4
mov eax, dword [ebp - 0x3c]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
cmp dword [ebp - 0x38], 0
je 0x54edfe
mov eax, dword [ebp - 0x38]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x34], 0
je 0x54ee0f
mov eax, dword [ebp - 0x34]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x30], 0
je 0x54ee20
mov eax, dword [ebp - 0x30]
call fcn.00408920
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0xb4]
push edx
push ecx
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x9e8]
call fcn.0061c238
test al, al
je 0x54ef30
mov eax, dword [ebp - 0xb4]
push eax
mov edx, dword [ebp - 0xb0]
push edx
lea edx, [esi + 0x2aa]
mov ecx, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x5e8]
mov eax, dword [ebp - 0xa8]
push eax
push edx
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x18
mov word [ebp - 0x8c], 0x110
lea eax, [ebp - 0x5e8]
call fcn.00408d58
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x80]
cmp dword [ebp - 0x40], 0
je 0x54ef11
cmp dword [ebx], 0
jne 0x54eea8
xor edx, edx
jmp 0x54eed2
mov ecx, dword [ebx]
cmp dword [ecx], 0
jne 0x54eec9
mov edi, dword [ebx]
test edi, edi
jne 0x54eeb9
xor edx, edx
jmp 0x54eed2
cmp dword [edi + 4], 0
je 0x54eec4
mov edx, dword [edi + 4]
jmp 0x54eed2
lea edx, [edi + 8]
jmp 0x54eed2
mov eax, ebx
call fcn.0040a360
mov edx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x54eee8
xor edx, edx
jmp 0x54ef08
mov eax, dword [ebp - 0xb8]
cmp dword [eax + 4], 0
je 0x54eeff
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 4]
jmp 0x54ef08
mov edx, dword [ebp - 0xb8]
add edx, 8
mov eax, dword [ebx]
call fcn.00408ec4
mov dword [ebx], eax
dec dword [ebp - 0x80]
cmp dword [ebp - 0x40], 0
je 0x54ef22
mov eax, dword [ebp - 0x40]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
jmp 0x54f043
lea edx, [esi + 0x2b6]
test edx, edx
je 0x54f043
cmp dword [ebx], 0
jne 0x54ef47
xor ecx, ecx
jmp 0x54ef71
mov eax, dword [ebx]
cmp dword [eax], 0
jne 0x54ef68
mov edi, dword [ebx]
test edi, edi
jne 0x54ef58
xor ecx, ecx
jmp 0x54ef71
cmp dword [edi + 4], 0
je 0x54ef63
mov ecx, dword [edi + 4]
jmp 0x54ef71
lea ecx, [edi + 8]
jmp 0x54ef71
mov eax, ebx
call fcn.0040a360
mov ecx, eax
lea edx, [esi + 0x2b6]
mov eax, dword [ebx]
call fcn.00408ec4
mov dword [ebx], eax
jmp 0x54f043
mov word [ebp - 0x8c], 0x128
lea ecx, [ebp - 0x44]
lea edx, [esi + 0x2c6]
lea eax, [ebp - 8]
call fcn.004016d4
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4e8]
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x48]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x4c]
pop eax
call fcn.00401834
lea eax, [ebp - 0x4c]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x50]
lea edx, [esi + 0x2d6]
call fcn.004016d4
lea edi, [ebp - 0x50]
inc dword [ebp - 0x80]
cmp dword [edi], 0
je 0x54efe6
mov eax, dword [edi]
inc dword [eax]
cmp dword [ebx], 0
je 0x54eff2
mov eax, dword [ebx]
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x50], 0
je 0x54f007
mov eax, dword [ebp - 0x50]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
cmp dword [ebp - 0x4c], 0
je 0x54f021
mov eax, dword [ebp - 0x4c]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x48], 0
je 0x54f032
mov eax, dword [ebp - 0x48]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x44], 0
je 0x54f043
mov eax, dword [ebp - 0x44]
call fcn.00408920
mov eax, ebx
call fcn.005bef00
mov edx, dword [ebp - 0xd4]
push edx
mov ecx, dword [ebp - 0xd8]
push ecx
lea ecx, [esi + 0x312]
mov eax, dword [ebp - 0xdc]
push eax
lea eax, [ebp - 0x5e8]
mov edx, dword [ebp - 0xe0]
push edx
push ecx
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0x18
mov word [ebp - 0x8c], 0x164
lea ecx, [ebp - 0x54]
lea edx, [esi + 0x34e]
lea eax, [ebp - 8]
call fcn.004016d4
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x5e8]
push edx
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x58]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
pop eax
call fcn.00401834
lea edi, [ebp - 0x5c]
inc dword [ebp - 0x80]
cmp dword [edi], 0
je 0x54f0c9
mov eax, dword [edi]
inc dword [eax]
cmp dword [ebx], 0
je 0x54f0d5
mov eax, dword [ebx]
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x5c], 0
je 0x54f0ea
mov eax, dword [ebp - 0x5c]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
cmp dword [ebp - 0x58], 0
je 0x54f104
mov eax, dword [ebp - 0x58]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x54], 0
je 0x54f115
mov eax, dword [ebp - 0x54]
call fcn.00408920
mov eax, ebx
call fcn.005bef00
lea eax, [ebp - 0xd0]
xor edx, edx
mov dl, byte [eax + 0xf]
push edx
xor ecx, ecx
mov cl, byte [eax + 0xe]
push ecx
xor edx, edx
mov dl, byte [eax + 0xd]
push edx
xor ecx, ecx
mov cl, byte [eax + 0xc]
push ecx
xor edx, edx
mov dl, byte [eax + 0xb]
push edx
xor ecx, ecx
mov cl, byte [eax + 0xa]
push ecx
xor edx, edx
mov dl, byte [eax + 9]
push edx
xor ecx, ecx
mov cl, byte [eax + 8]
push ecx
movzx edx, word [eax + 6]
push edx
movzx ecx, word [eax + 4]
push ecx
mov eax, dword [eax]
push eax
lea eax, [esi + 0x36a]
push eax
lea edx, [ebp - 0x5e8]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x34
mov word [ebp - 0x8c], 0x194
lea ecx, [ebp - 0x60]
lea edx, [esi + 0x39a]
lea eax, [ebp - 8]
call fcn.004016d4
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x5e8]
push ecx
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x64]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
pop eax
call fcn.00401834
lea edi, [ebp - 0x68]
inc dword [ebp - 0x80]
cmp dword [edi], 0
je 0x54f1c2
mov eax, dword [edi]
inc dword [eax]
cmp dword [ebx], 0
je 0x54f1ce
mov eax, dword [ebx]
call fcn.00408920
mov edx, dword [edi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x68], 0
je 0x54f1e3
mov eax, dword [ebp - 0x68]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
cmp dword [ebp - 0x64], 0
je 0x54f1fd
mov eax, dword [ebp - 0x64]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x60], 0
je 0x54f20e
mov eax, dword [ebp - 0x60]
call fcn.00408920
mov eax, ebx
call fcn.005bef00
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [esi + 0x3d0]
push ecx
lea eax, [ebp - 0x5e8]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov word [ebp - 0x8c], 0x1c4
lea ecx, [ebp - 0x6c]
lea edx, [esi + 0x3d6]
lea eax, [ebp - 8]
call fcn.004016d4
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x5e8]
push edx
inc dword [ebp - 0x80]
call fcn.00408d58
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x70]
inc dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
pop eax
call fcn.00401834
lea edx, [ebp - 0x74]
inc dword [ebp - 0x80]
mov esi, edx
cmp dword [esi], 0
je 0x54f281
mov ecx, dword [esi]
inc dword [ecx]
cmp dword [ebx], 0
je 0x54f28d
mov eax, dword [ebx]
call fcn.00408920
mov edx, dword [esi]
mov dword [ebx], edx
dec dword [ebp - 0x80]
cmp dword [ebp - 0x74], 0
je 0x54f2a2
mov eax, dword [ebp - 0x74]
call fcn.00408920
mov word [ebp - 0x8c], 0x38
dec dword [ebp - 0x80]
cmp dword [ebp - 0x70], 0
je 0x54f2bc
mov eax, dword [ebp - 0x70]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 0x6c], 0
je 0x54f2cd
mov eax, dword [ebp - 0x6c]
call fcn.00408920
mov eax, ebx
call fcn.005bef00
dec dword [ebp - 0x80]
cmp dword [ebx], 0
je 0x54f2e3
mov eax, dword [ebx]
call fcn.00408920
dec dword [ebp - 0x80]
cmp dword [ebp - 8], 0
je 0x54f2f4
mov eax, dword [ebp - 8]
call fcn.00408920
mov word [ebp - 0x8c], 0x20
jmp 0x54f33b
mov word [ebp - 0x8c], 0x20c
lea eax, [esi + 0x3f2]
call fcn.00408c54
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
inc dword [ebp - 0x80]
call fcn.005bef00
dec dword [ebp - 0x80]
cmp dword [ebp - 0x78], 0
je 0x54f332
mov eax, dword [ebp - 0x78]
call fcn.00408920
mov word [ebp - 0x8c], 0x20
mov word [ebp - 0x8c], 0
jmp 0x54f354
mov edx, dword [ebp - 0x9c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret