Function at 0x485b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53f2d6
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
call fcn.004785c0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 9
xor ebx, ebx
push ebx
push 0x465428
mov dword [esp + 0x2c], ebx
mov ecx, dword [edi + 0x468]
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x48], edi
call ecx
cmp eax, ebx
jne 0x485e85
lea edx, [esp + 0x8c]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x485e85
push 2
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x74]
call fcn.00482730
mov dword [esp + 0x3a0], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1a0]
push edx
push eax
mov dword [esp + 0x4c], 0x100
mov edx, dword [edi + 0x4b0]
push ecx
call edx
sub eax, ebx
je 0x485c72
sub eax, 0xea
jne 0x485e5f
inc dword [esp + 0x18]
jmp 0x485c32
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0x468]
push 9
push ebx
lea ecx, [esp + 0x198]
push ecx
push edx
mov dword [esp + 0x34], ebx
call eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x28], 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x34]
push edx
mov edx, dword [edi + 0x4b8]
lea eax, [esp + 0x2a0]
push eax
push ebx
push ecx
mov dword [esp + 0x44], 0x100
call edx
sub eax, 0
je 0x485ce1
sub eax, 0xea
jne 0x485e00
inc ebx
jmp 0x485ca0
cmp dword [esp + 0x28], 1
jne 0x485d91
cmp dword [esp + 0x24], 2
jb 0x485d91
push 2
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x54]
call fcn.00482730
mov eax, dword [esp + 0x64]
mov byte [esp + 0x3a0], 1
mov edi, 0x10
test eax, eax
je 0x485d39
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x485d2d
lea ecx, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov eax, dword [esp + 0x64]
cmp eax, 1
ja 0x485d43
call fcn.0052624b
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x485d51
lea eax, [esp + 0x54]
cmp byte [eax + 1], 0x3a
jne 0x485d6c
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esi + 0xf0]
call fcn.00485610
mov byte [esp + 0x3a0], 0
mov dword [esp + 0x4c], 0x469080
cmp dword [esp + 0x68], edi
jb 0x485d96
mov eax, dword [esp + 0x54]
push eax
call fcn.005265f5
add esp, 4
jmp 0x485d96
mov edi, 0x10
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x485dba
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], edi
jae 0x485db2
lea eax, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x3c]
add esi, 0xf0
push edx
mov ecx, esi
call fcn.0050c9f0
mov eax, dword [esp + 0x38]
mov edi, dword [esi + 0x18]
mov esi, dword [esi]
test eax, eax
je 0x485de2
cmp eax, esi
je 0x485de7
call fcn.00526bf6
cmp dword [esp + 0x3c], edi
je 0x485df2
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
inc ebx
jmp 0x485ca0
sub eax, 0x19
jne 0x485ea9
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x4c0]
push eax
call ecx
cmp byte [esp + 0x17], 0
jne 0x485eca
mov edx, dword [esi + 0x108]
mov eax, dword [edx + 4]
add esi, 0xf0
push eax
mov ecx, esi
call fcn.00483360
mov eax, dword [esi + 0x18]
inc dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x485c32
sub eax, 0x19
jne 0x485e71
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x4c0]
push ecx
call edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x3a0], 0xffffffff
call fcn.00477890
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x380]
xor ecx, esp
call fcn.00526a8a
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x6c], 0x469080
jb 0x485e85
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005265f5
add esp, 4
jmp 0x485e85
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x4c0]
push edx
call eax
jmp 0x485e71