Function at 0x402870
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402f97
push eax
mov dword fs:[0], esp
sub esp, 0x2c0
cmp dword [ecx + 0x78], 0
push ebx
mov dword [ebp - 0x18], ecx
push esi
push edi
mov dword [ebp - 0x10], esp
jne 0x4028c0
lea ecx, [ebp - 0x80]
call fcn.00443076
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
call fcn.004025d0
mov dword [ebp - 4], 0xffffffff
call fcn.00402eeb
lea ecx, [ebp - 0x2cc]
call fcn.00416a00
push 0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 3
push 0x4641bc
call fcn.0042ab30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.00442f3e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
call fcn.00441779
push 0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
mov dword [ebp - 0x94], vtable.CFileException.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xffffffff
call fcn.00441a27
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00441779
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00441779
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.00441779
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.00441779
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.00441779
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.00441779
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.00441779
push 0x104
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push 0x104
call fcn.00441c61
push eax
call fcn.004513dc
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00441cb6
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x11]
call fcn.0042ed60
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x11]
call fcn.0042ecc0
push 8
lea ecx, [ebp - 0x2cc]
call fcn.00417a50
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x2b4]
push ecx
push edx
lea ecx, [ebp - 0x2cc]
call fcn.00417880
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x11]
call fcn.0042ecc0
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00441cde
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00441cb6
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x11]
call fcn.0042ecc0
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x28]
mov eax, dword [eax + 0x64]
push eax
mov ecx, esi
call fcn.0042e820
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6c]
push ecx
mov ecx, esi
call fcn.0042e820
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov edx, dword [ecx + 0x68]
mov ecx, esi
push edx
call fcn.0042e820
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov edx, dword [ecx + 0x70]
mov ecx, esi
push edx
call fcn.0042e820
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
add eax, 0x14
mov dword [ebp - 0x54], eax
mov ecx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f2b
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x50], eax
mov ecx, dword [eax]
push ecx
lea eax, [ebp - 0x5c]
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f23
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x4c], eax
mov ecx, dword [eax]
push ecx
lea eax, [ebp - 0x60]
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f1b
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x48], eax
mov ecx, dword [eax]
push ecx
lea eax, [ebp - 0x64]
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f13
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f0b
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
lea eax, [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402f03
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
lea eax, [ebp - 0x70]
push ecx
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402efb
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
lea eax, [ebp - 0x74]
push ecx
push edx
push eax
call fcn.00441b19
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.004419d7
mov byte [ebp - 4], 0xe
call fcn.00402ef3
push 0x4000
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
call esi
cmp eax, 0xffffffff
je 0x402c3c
push 0x4000
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call esi
cmp eax, 0xffffffff
je 0x402c3c
push 0x4000
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call esi
cmp eax, 0xffffffff
je 0x402c3c
push 0x4000
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x402e64
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xbc]
push eax
call fcn.0042ad40
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0xbc]
push eax
push 0x12
call fcn.0042b570
test eax, eax
jne 0x402c78
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004431f7
push 0
mov eax, dword [ebp - 0x40]
push 0
push 1
push 2
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0042b790
lea ecx, [ebp - 0xbc]
call fcn.0042b6e0
lea ecx, [ebp - 0xbc]
call fcn.0042ad60
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.00441a27
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xbc]
push edx
call fcn.0042ad40
lea ecx, [ebp - 0x94]
push ecx
push 0x12
lea ecx, [ebp - 0xbc]
call fcn.0042b570
test eax, eax
jne 0x402d02
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004431f7
push 0
mov eax, dword [ebp - 0x3c]
push 0
push 1
push 2
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0042b790
lea ecx, [ebp - 0xbc]
call fcn.0042b6e0
lea ecx, [ebp - 0xbc]
call fcn.0042ad60
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00441a27
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xbc]
push edx
call fcn.0042ad40
lea ecx, [ebp - 0x94]
push ecx
push 0x12
lea ecx, [ebp - 0xbc]
call fcn.0042b570
test eax, eax
jne 0x402d8c
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004431f7
push 0
mov eax, dword [ebp - 0x38]
push 0
push 1
push 2
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0042b790
lea ecx, [ebp - 0xbc]
call fcn.0042b6e0
lea ecx, [ebp - 0xbc]
call fcn.0042ad60
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00441a27
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0xbc]
push edx
call fcn.0042ad40
lea ecx, [ebp - 0x94]
push ecx
push 0x12
lea ecx, [ebp - 0xbc]
call fcn.0042b570
test eax, eax
jne 0x402e16
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004431f7
push 0
mov eax, dword [ebp - 0x34]
push 0
push 1
push 2
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0042b790
lea ecx, [ebp - 0xbc]
call fcn.0042b6e0
lea ecx, [ebp - 0xbc]
call fcn.0042ad60
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00441a27
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x24], 1
mov byte [ebp - 4], 0xd
call fcn.00402f33
mov byte [ebp - 4], 0xc
call fcn.00402f3b
mov byte [ebp - 4], 0xb
call fcn.00402f43
mov byte [ebp - 4], 0xa
call fcn.00402f4b
mov byte [ebp - 4], 9
call fcn.00402f53
mov byte [ebp - 4], 8
call fcn.00402f5b
mov byte [ebp - 4], 7
call fcn.00402f63
mov byte [ebp - 4], 4
call fcn.00402f81
mov byte [ebp - 4], 3
call fcn.00402f8c
mov dword [ebp - 4], 0xffffffff
call fcn.00402fa1
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret