Function at 0x425600
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47aefd
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x614], eax
push ebx
push esi
mov eax, dword [0x4a05d0]
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.0043ab96
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x425664
push 0x80004005
call fcn.0040a7c0
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.0043ab96
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x425699
push 0x80004005
call fcn.0040a7c0
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 0x4256d5
push 0x104
lea ecx, [esp + 0x10]
call fcn.0040a450
mov esi, dword [esp + 0xc]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x4256ed
cmp eax, 0x104
jne 0x4256f1
xor eax, eax
jmp 0x425706
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045a627
add esp, 8
cmp eax, ebx
jl 0x4258e7
cmp eax, dword [esi - 8]
jg 0x4258e7
push pe_nt_image_headers32
xor ecx, ecx
lea edx, [esp + 0x424]
push edx
push pe_nt_image_headers32
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esp + 0x22c]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x34]
push ecx
push 3
lea edx, [esp + 0x34]
push edx
push esi
call fcn.0045cfec
lea eax, [esp + 0x244]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425756
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a500
push 4
push str..ini
lea ecx, [esp + 0x14]
call fcn.00409b50
cmp byte [esp + 0x634], bl
je 0x4257f1
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x425797
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0040a500
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4257c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00409b50
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, edi
call fcn.00409b50
jmp 0x42589c
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 0x425816
push 0x104
mov ecx, edi
call fcn.0040a450
mov eax, dword [edi]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x42582f
cmp eax, 0x104
jb 0x425833
xor eax, eax
jmp 0x425852
mov eax, dword [edi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x425840
xor eax, eax
jmp 0x425852
push ecx
push eax
call fcn.0045a627
add esp, 8
cmp eax, ebx
jl 0x4258e7
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x4258e7
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.00425bb0
mov eax, 0x2f
call fcn.00425bb0
push 1
push 0x485764
mov ecx, edi
call fcn.00409b50
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, edi
call fcn.00409b50
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 0x4258bf
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.004597c7
add esp, 0x624
ret
push 0x80070057
call fcn.0040a7c0
int3