Function at 0x404270
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xa314]
mov eax, 0xa314
call fcn.0042da40
push 0xffffffffffffffff
push 0x44188e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45878c]
xor eax, ebp
mov dword [ebp + 0xa310], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xa330]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042d7
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0x20c
lea ecx, [ebp]
push 0
push ecx
mov byte [ebp - 4], 2
call fcn.0042d490
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00418a0e
mov ebx, dword [ebp + 0xa32c]
push 0
push 0x1002
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00418e7a
test eax, eax
jne 0x4043bd
push 0x10
push 0x445ab8
mov ecx, esi
call fcn.00401740
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00418b0a
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xa320]
test esi, esi
mov byte [ebp - 4], 0
je 0x404390
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xa324]
push ecx
lea edx, [ebp + 0xa31c]
push edx
push eax
push esi
call fcn.00402ce0
push esi
call fcn.0040fe2e
add esp, 0x14
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x404720
mov ebx, dword [ebp + 0xa320]
test ebx, ebx
mov edi, dword [ebp + 0xa324]
jne 0x4043d2
mov dword [ebp - 0x1c], ebx
jmp 0x4043dc
mov ecx, edi
sub ecx, ebx
sar ecx, 2
mov dword [ebp - 0x1c], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0041875c
call dword [0x459b94]
cmp ebx, edi
mov dword [ebp - 0x14], eax
jbe 0x404400
call fcn.0042d786
lea esp, [esp]
cmp dword [ebp + 0xa320], edi
jbe 0x40440d
call fcn.0042d786
cmp ebx, edi
je 0x40460c
lea ecx, [ebp - 0x44]
call fcn.00418a0e
cmp ebx, edi
mov byte [ebp - 4], 4
jb 0x40442a
call fcn.0042d786
mov eax, dword [ebx]
push 0
push 0x30
push eax
lea ecx, [ebp - 0x44]
call fcn.00418e7a
test eax, eax
jne 0x4044d9
cmp ebx, edi
jb 0x40444a
call fcn.0042d786
push ebx
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00402750
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004025f0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4459a8
lea ecx, [ebp - 0x30]
push esi
push ecx
call fcn.00402810
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004025f0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4044c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00418b0a
jmp 0x4045fb
push 0x20c
lea ecx, [ebp]
push 0
push ecx
call fcn.0042d490
add esp, 0xc
cmp ebx, edi
jb 0x4044f5
call fcn.0042d786
push ebx
lea ecx, [ebp - 0x10]
call fcn.004025f0
push 0x104
lea edx, [ebp + 0xa20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x445678
lea eax, [ebp + 0xa20c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402290
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404574
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x404574
lea eax, [edi + edi]
call fcn.0042da10
mov esi, esp
test esi, esi
je 0x404571
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push edx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x18]
jmp 0x404576
mov esi, dword [ebp - 0x18]
xor eax, eax
push eax
lea eax, [ebp]
push 0x445a98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00418901
push 0x20c
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0x208], eax
call fcn.0041875c
mov eax, dword [ebp + 0x208]
test eax, eax
mov edi, eax
jbe 0x4045e1
push 0xa000
lea edx, [ebp + 0x20c]
push edx
lea ecx, [ebp - 0x44]
call fcn.0041871c
mov esi, eax
push esi
lea eax, [ebp + 0x20c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041875c
sub edi, esi
jne 0x4045b4
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.004189ac
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00418b0a
mov edi, dword [ebp + 0xa324]
cmp ebx, edi
jb 0x404604
call fcn.0042d786
add ebx, 4
jmp 0x404400
lea ecx, [ebp - 0x2c]
call fcn.004189ac
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jne 0x4046a1
call fcn.00418b0a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40464b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xa320]
test esi, esi
mov byte [ebp - 4], 0
je 0x404674
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp + 0xa31c]
push edx
push edi
push esi
call fcn.00402ce0
push esi
call fcn.0040fe2e
add esp, 0x14
mov eax, dword [ebp + 0xa32c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40469d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404720
call fcn.00418b0a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xa320]
test esi, esi
mov byte [ebp - 4], 0
je 0x4046f2
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp + 0xa31c]
push edx
push edi
push esi
call fcn.00402ce0
push esi
call fcn.0040fe2e
add esp, 0x14
mov eax, dword [ebp + 0xa32c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40471b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa310]
xor ecx, ebp
call fcn.0042d47b
add ebp, 0xa314
mov esp, ebp
pop ebp
ret 0x18