Function at 0x4253b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4755fd
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x614], eax
push ebx
push esi
mov eax, dword [0x4995d0]
xor eax, esp
push eax
lea eax, [esp + 0x624]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x62c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call fcn.00435592
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x425414
push 0x80004005
call fcn.0040a660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x62c], 1
call fcn.00435592
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x425449
push 0x80004005
call fcn.0040a660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x10], 1
jge 0x425485
push 0x104
lea ecx, [esp + 0x10]
call fcn.0040a2f0
mov esi, dword [esp + 0xc]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x42549d
cmp eax, 0x104
jne 0x4254a1
xor eax, eax
jmp 0x4254b6
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00455007
add esp, 8
cmp eax, ebx
jl 0x425697
cmp eax, dword [esi - 8]
jg 0x425697
push 0x100
xor ecx, ecx
lea edx, [esp + 0x424]
push edx
push 0x100
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esp + 0x22c]
push eax
push 0x100
lea ecx, [esp + 0x34]
push ecx
push 3
lea edx, [esp + 0x34]
push edx
push esi
call fcn.004579cc
lea eax, [esp + 0x244]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425506
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a3a0
push 4
push 0x4838fc
lea ecx, [esp + 0x14]
call fcn.004099c0
cmp byte [esp + 0x634], bl
je 0x4255a1
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425547
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0040a3a0
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425570
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004099c0
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, edi
call fcn.004099c0
jmp 0x42564c
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4255c6
push 0x104
mov ecx, edi
call fcn.0040a2f0
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x4255df
cmp eax, 0x104
jb 0x4255e3
xor eax, eax
jmp 0x425602
mov eax, dword [edi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x4255f0
xor eax, eax
jmp 0x425602
push ecx
push eax
call fcn.00455007
add esp, 8
cmp eax, ebx
jl 0x425697
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x425697
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [edx + 0x5c]
mov ebx, edi
call fcn.00425960
mov eax, 0x2f
call fcn.00425960
push 1
push 0x4806c4
mov ecx, edi
call fcn.004099c0
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, edi
call fcn.004099c0
xor ebx, ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x62c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42566f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.004541a5
add esp, 0x624
ret
push 0x80070057
call fcn.0040a660
int3