Function at 0x402670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423bab
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x42ec90]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x42ec90]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040695e
push str.BugTrace.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x3dc], eax
call fcn.00403500
mov eax, dword [edi + 0x74]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [edi + 0x20]
push 1
push 0x80
push eax
call esi
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x20]
push eax
push 0
push 0x80
push ecx
call esi
fld qword [str.ffffff]
push 0x67
fstp qword [edi + 0x90]
call fcn.00407989
test eax, eax
je 0x40271a
push 0x67
push eax
lea ecx, [edi + 0x98]
call fcn.00403720
push 0x68
call fcn.00407989
test eax, eax
je 0x402733
push 0x68
push eax
lea ecx, [edi + 0x9c]
call fcn.00403720
push 0x67
call fcn.00407989
test eax, eax
je 0x40274c
push 0x67
push eax
lea ecx, [edi + 0xa0]
call fcn.00403720
push str.TP3Helper.dat
lea eax, [edi + 0x1a0]
push 0x104
push eax
mov dword [edi + 0xa4], 1
mov dword [edi + 0xa8], 2
mov dword [edi + 0xac], 3
mov dword [edi + 0xb0], 4
mov dword [edi + 0xb4], 5
call fcn.0041281d
add esp, 0xc
push 0
mov dword [edi + 0x3a8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [edi + 0x3d4], 0
mov dword [edi + 0xb8], eax
jne 0x4027ce
mov edx, dword [edi]
mov eax, dword [edx + 0x15c]
mov ecx, edi
call eax
mov eax, 1
jmp 0x402adc
call fcn.004082ee
mov eax, dword [eax + 0xc]
mov esi, dword [sym.imp.USER32.dll_LoadBitmapW]
push 0x82
push eax
call esi
push eax
lea ecx, [edi + 0xbc]
call fcn.004076a2
test eax, eax
je 0x402ada
mov edx, dword [edi + 0xc0]
lea ecx, [edi + 0xc4]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x402ada
call fcn.004082ee
mov eax, dword [eax + 0xc]
push 0x83
push eax
lea ebx, [edi + 0xdc]
call esi
push eax
mov ecx, ebx
call fcn.004076a2
test eax, eax
je 0x402ada
call fcn.004082ee
mov eax, dword [eax + 0xc]
push 0x84
push eax
lea ebx, [edi + 0xfc]
call esi
push eax
mov ecx, ebx
call fcn.004076a2
test eax, eax
je 0x402ada
push 0x85
lea esi, [edi + 0x11c]
push esi
call fcn.004018f0
test eax, eax
je 0x402ada
lea eax, [edi + 0xe4]
push eax
lea ecx, [edi + 0xdc]
call fcn.00401920
test eax, eax
je 0x402ada
lea ecx, [edi + 0x104]
push ecx
mov ecx, ebx
call fcn.00401920
test eax, eax
je 0x402ada
lea edx, [edi + 0x124]
push edx
mov ecx, esi
call fcn.00401920
test eax, eax
je 0x402ada
mov eax, dword [edi + 0x3d8]
cmp eax, 4
jae 0x4028d5
mov eax, dword [eax*4 + 0x429334]
jmp 0x4028da
mov eax, 0x88
push eax
lea esi, [edi + 0x13c]
push esi
call fcn.004018f0
test eax, eax
je 0x402ada
lea eax, [edi + 0x144]
push eax
mov ecx, esi
call fcn.00401920
test eax, eax
je 0x402ada
mov eax, dword [edi + 0x3d8]
cmp eax, 4
jae 0x402919
mov eax, dword [eax*4 + 0x429344]
jmp 0x40291e
mov eax, 0x89
push eax
lea esi, [edi + 0x15c]
push esi
call fcn.004018f0
test eax, eax
je 0x402ada
lea ecx, [edi + 0x164]
push ecx
mov ecx, esi
call fcn.00401920
test eax, eax
je 0x402ada
lea esi, [esp + 0x14]
call fcn.00401aa0
lea eax, [edi + 0x1a0]
push eax
mov edx, esi
xor ebx, ebx
push edx
mov dword [esp + 0x168], ebx
call fcn.00401d30
test eax, eax
jl 0x402989
lea ecx, [esp + 0x14]
lea esi, [edi + 0x17c]
call fcn.00401cb0
push eax
mov ecx, esi
call fcn.004076a2
test eax, eax
jne 0x402991
mov dword [edi + 0x19c], ebx
jmp 0x4029ab
lea eax, [edi + 0x184]
push eax
mov ecx, esi
call fcn.00401920
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0x19c], eax
push ebx
lea esi, [edi + 0x3c4]
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [edi + 0xc8]
mov edx, dword [edi + 0x3cc]
mov ebx, dword [edi + 0xcc]
mov eax, dword [edi + 0x3d0]
sub edx, ecx
dec edx
mov dword [edi + 0x78], edx
mov dword [esi], edx
sub eax, ebx
add edx, ecx
mov dword [edi + 0x7c], eax
mov dword [edi + 0x3c8], eax
mov dword [edi + 0x3cc], edx
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], ebx
add eax, ebx
mov dword [edi + 0x3d0], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0040d915
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0x20]
xor ebx, ebx
push ebx
push 0x19
push eax
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [edi + 0x3d4]
sub edx, 0x190
mov eax, 0x51eb851f
mul edx
mov eax, dword [edi + 0xb4]
push ebx
shr edx, 5
push edx
push eax
mov ecx, edi
call fcn.00401940
lea ecx, [esp + 0x44]
push ecx
push 0x104
mov byte [edi + 0x3b4], bl
mov byte [edi + 0x3b5], bl
mov byte [edi + 0x3b6], 0xff
mov byte [edi + 0x3b7], 1
mov byte [edi + 0x88], bl
mov dword [edi + 0x3ac], ebx
mov dword [edi + 0x3b0], ebx
mov dword [edi + 0x3b8], ebx
mov dword [edi + 0x3bc], ebx
mov dword [edi + 0x3c0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi + 0x20]
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [edi + 0x20]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea ecx, [esp + 0x14]
call fcn.00401b10
lea eax, [ebx + 1]
jmp 0x402adc
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0041185e
mov esp, ebp
pop ebp
ret