Function at 0x46c1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eaee5
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov esi, dword [0x504dd8]
mov dword [esp + 0x18], esi
test esi, esi
jne 0x46c267
push 0x4d8
call fcn.004d100c
mov esi, eax
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x398], 0
test esi, esi
je 0x46c250
mov ecx, esi
call fcn.0045c510
mov ecx, esi
mov byte [esp + 0x398], 1
call fcn.0045d650
jmp 0x46c256
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x398], 0xffffffff
mov dword [0x504dd8], esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [esi + 0x478]
push 9
push 0
push 0x44f3b0
push 0x80000001
call eax
test eax, eax
jne 0x46c5e5
lea eax, [esp + 0x84]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x46c5e5
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
push 2
lea eax, [esp + 0x88]
mov dword [esp + 0x39c], 2
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x44fa2c
call fcn.0049e9d0
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor ebx, ebx
mov dword [esp + 0x398], 3
push 0
push 0
push 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x100
push eax
lea eax, [esp + 0x198]
mov dword [esp + 0x3c], ebx
push eax
mov eax, dword [esi + 0x4c0]
push ebx
push dword [esp + 0x30]
call eax
sub eax, 0
je 0x46c33f
sub eax, 0xea
jne 0x46c5b6
inc ebx
jmp 0x46c2fe
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 9
push 0
lea eax, [esp + 0x190]
push eax
push dword [esp + 0x24]
mov eax, dword [esi + 0x478]
call eax
xor al, al
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
push 0
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x18], ebx
push eax
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0x100
push eax
lea eax, [esp + 0x298]
push eax
mov eax, dword [esi + 0x4c8]
push ebx
push dword [esp + 0x3c]
call eax
sub eax, 0
je 0x46c3b4
sub eax, 0xea
jne 0x46c565
inc ebx
jmp 0x46c370
cmp dword [esp + 0x30], 1
jne 0x46c48f
cmp dword [esp + 0x38], 2
jb 0x46c48f
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
push 2
lea eax, [esp + 0x288]
mov byte [esp + 0x39c], 4
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x44fa2c
call fcn.0049e9d0
mov ecx, dword [esp + 0x60]
mov byte [esp + 0x398], 5
test ecx, ecx
je 0x46c428
cmp dword [esp + 0x64], 0x10
lea eax, [esp + 0x50]
push ecx
cmovae eax, dword [esp + 0x54]
push eax
call edi
mov ecx, dword [esp + 0x60]
cmp ecx, 1
jbe 0x46c609
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x50]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + 1], 0x3a
jne 0x46c471
movzx eax, byte [0x504c50]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [ecx + 0x48]
call fcn.00468760
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
mov byte [esp + 0x398], 3
mov dword [esp + 0x4c], 0x44fa2c
cmp ecx, 0x10
jb 0x46c48f
push edx
call fcn.004d105d
add esp, 4
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x46c4ac
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
push ecx
cmovae eax, dword [esp + 0x70]
push eax
call edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
lea ecx, [edi + 0x48]
call fcn.00475a80
mov esi, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x46c531
lea eax, [esi + 0x10]
test eax, eax
je 0x46c4d6
add eax, 4
jmp 0x46c4d8
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x46c4e3
mov eax, dword [eax]
cmp dword [esp + 0x80], 0x10
lea edx, [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
mov ecx, edi
cmovae edx, dword [esp + 0x6c]
cmp ebx, edi
cmovb ecx, ebx
push ecx
push eax
push edx
call fcn.004694f0
add esp, 0xc
test eax, eax
jne 0x46c519
cmp ebx, edi
jb 0x46c529
cmp ebx, edi
setne al
test eax, eax
mov ebx, dword [esp + 0x10]
js 0x46c52d
mov dword [esp + 0x40], esi
lea eax, [esp + 0x40]
jmp 0x46c539
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp eax, dword [edx + 0x48]
mov eax, 1
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
movzx ecx, cl
cmovne ecx, eax
inc ebx
mov dword [esp + 0x24], ecx
jmp 0x46c370
sub eax, 0x19
jne 0x46c5c7
push dword [esp + 0x20]
mov eax, dword [esi + 0x2a8]
call eax
mov eax, dword [esp + 0x24]
test al, al
jne 0x46c5bb
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
push dword [eax + 4]
call fcn.00464410
mov eax, dword [esi + 0x48]
mov ebx, dword [esp + 0x28]
inc ebx
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov dword [esi + 0x4c], 0
mov esi, dword [esp + 0x18]
jmp 0x46c2fe
sub eax, 0x19
jne 0x46c5c7
push dword [esp + 0x14]
mov eax, dword [esi + 0x2a8]
call eax
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x68], 0x44fa2c
jb 0x46c5e5
push dword [esp + 0x6c]
call fcn.004d105d
add esp, 4
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.004d17f4
mov esp, ebp
pop ebp
ret
push 0x44f13c
call fcn.004d0709
int3