Function at 0x40ab10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4f92a0]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0xfa1
mov dword [esp + 0x34], eax
call fcn.00416050
push 0x206
lea edx, [esp + 0x3e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x44], cx
call fcn.00438230
add esp, 0x14
push 0x206
lea ecx, [esp + 0x23e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x244], ax
call fcn.00438230
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x238]
push eax
push ebx
push str.gppins
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40abe8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x238]
mov word [esp + eax + 0x30], cx
add eax, 2
cmp cx, bx
jne 0x40abb0
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40abd0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x28], dx
jmp 0x40ac1f
lea eax, [esp + 0x30]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40abf0
mov ecx, dword [str.tmpgpp]
mov edx, dword [0x4d4520]
mov dword [eax], ecx
mov ecx, dword [0x4d4524]
mov dword [eax + 4], edx
mov edx, dword [0x4d4528]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x40ac49
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40ac42
mov esi, eax
call fcn.00411220
jmp 0x40ac44
xor eax, eax
mov dword [0x4fd894], eax
push 1
lea ecx, [esp + 0x34]
mov edx, eax
call fcn.004100d0
call fcn.0040a6e0
push ebx
push 0xfa2
call fcn.00416050
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4fa44c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x40aca9
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40aca2
mov esi, eax
call fcn.00411220
jmp 0x40aca4
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x208
push eax
push str._sApps
lea edi, [esp + 0x2c]
call fcn.00403d60
mov eax, dword [0x4fd894]
add esp, 8
cmp eax, ebx
jne 0x40acea
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40ace3
mov esi, eax
call fcn.00411220
jmp 0x40ace5
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [esp + 0x24]
push 1
push 0x4d3880
push ecx
mov ecx, eax
call fcn.0040d040
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x40ad3e
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40ad37
mov esi, eax
call fcn.00411220
jmp 0x40ad39
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x208
push eax
push str._sMain
lea edi, [esp + 0x28]
call fcn.00403d60
mov eax, dword [0x4fd894]
add esp, 8
cmp eax, ebx
jne 0x40ad7f
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40ad78
mov esi, eax
call fcn.00411220
jmp 0x40ad7a
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [esp + 0x20]
push 2
push 0x4d3880
push ecx
mov ecx, eax
call fcn.0040d040
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x40add3
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40adcc
mov esi, eax
call fcn.00411220
jmp 0x40adce
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x208
push eax
push str._sSDK
lea edi, [esp + 0x30]
call fcn.00403d60
mov eax, dword [0x4fd894]
add esp, 8
cmp eax, ebx
jne 0x40ae14
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x40ae0d
mov esi, eax
call fcn.00411220
jmp 0x40ae0f
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [esp + 0x28]
push 3
push 0x4d3880
push ecx
mov ecx, eax
call fcn.0040d040
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
nop
mov ecx, dword [0x4fd894]
test ecx, ecx
jne 0x40ae5e
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40ae56
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40ae58
xor ecx, ecx
mov dword [0x4fd894], ecx
mov edx, dword [ecx + 0x2294]
sub edx, dword [ecx + 0x2290]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jae 0x40af99
test ecx, ecx
jne 0x40aead
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40aea5
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40aea7
xor ecx, ecx
mov dword [0x4fd894], ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x40aed9
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40aed1
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40aed3
xor ecx, ecx
mov dword [0x4fd894], ecx
mov edi, ecx
test ecx, ecx
jne 0x40af03
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40aefb
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40aefd
xor ecx, ecx
mov dword [0x4fd894], ecx
mov ebx, dword [ecx + 0x2290]
mov ecx, dword [esp + 0x1c]
add ebx, dword [esp + 0x14]
add ecx, 0x1c70
lea edx, [edi + 0x208]
call fcn.0040d770
mov ebx, eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40af4e
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40af47
mov esi, eax
call fcn.00411220
jmp 0x40af49
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [eax + 0x2290]
mov esi, dword [esp + 0x14]
lea edx, [esi + ecx + 0x208]
nop
movzx ecx, word [ebx]
mov word [edx], cx
add ebx, 2
add edx, 2
test cx, cx
jne 0x40af60
mov edx, dword [eax + 0x2290]
lea ecx, [esi + edx]
lea edx, [ecx + 0x208]
push eax
call fcn.0040d850
inc dword [esp + 0x10]
add esi, 0x410
mov dword [esp + 0x14], esi
jmp 0x40ae30
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea esp, [esp]
test ecx, ecx
jne 0x40afd8
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40afd0
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40afd2
xor ecx, ecx
mov dword [0x4fd894], ecx
mov edx, dword [ecx + 0x22a4]
sub edx, dword [ecx + 0x22a0]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jae 0x40b1d4
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b040
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b039
mov esi, eax
call fcn.00411220
jmp 0x40b03b
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x208
push eax
push str._sMain
lea edi, [esp + 0x18]
call fcn.00403d60
mov eax, dword [0x4fd894]
add esp, 8
test eax, eax
jne 0x40b081
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b07a
mov esi, eax
call fcn.00411220
jmp 0x40b07c
xor eax, eax
mov dword [0x4fd894], eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
mov dword [esp + 0x1c], eax
jle 0x40b0a6
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004035d0
mov edi, dword [esp + 0x10]
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b0cb
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b0c4
mov esi, eax
call fcn.00411220
jmp 0x40b0c6
xor eax, eax
mov dword [0x4fd894], eax
mov ebx, dword [eax + 0x22a0]
mov ecx, dword [esp + 0x1c]
add ebx, dword [esp + 0x14]
add ecx, 0x410
mov edx, edi
call fcn.0040d770
mov ebx, eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b112
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b10b
mov esi, eax
call fcn.00411220
jmp 0x40b10d
xor eax, eax
mov dword [0x4fd894], eax
mov eax, dword [eax + 0x22a0]
mov ecx, dword [esp + 0x14]
lea ecx, [eax + ecx + 0x208]
movzx eax, word [ebx]
mov word [ecx], ax
add ebx, 2
add ecx, 2
test ax, ax
jne 0x40b123
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x40b1ca
cmp eax, dword [edi - 8]
jg 0x40b1ca
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b181
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b17a
mov esi, eax
call fcn.00411220
jmp 0x40b17c
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [eax + 0x22a0]
add ecx, dword [esp + 0x14]
push eax
lea edx, [ecx + 0x208]
call fcn.0040d850
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b1b3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
inc dword [esp + 0x18]
add dword [esp + 0x14], 0x410
mov ecx, dword [0x4fd894]
jmp 0x40afb0
push 0x80070057
call fcn.00403020
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
test ecx, ecx
jne 0x40b206
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b1fe
mov esi, eax
call fcn.00411220
mov ecx, eax
jmp 0x40b200
xor ecx, ecx
mov dword [0x4fd894], ecx
mov edx, dword [ecx + 0x22b4]
sub edx, dword [ecx + 0x22b0]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x18], ecx
jae 0x40b3f5
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b26e
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b267
mov esi, eax
call fcn.00411220
jmp 0x40b269
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x208
push eax
push str._sSDK
lea edi, [esp + 0x1c]
call fcn.00403d60
mov eax, dword [0x4fd894]
add esp, 8
test eax, eax
jne 0x40b2af
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b2a8
mov esi, eax
call fcn.00411220
jmp 0x40b2aa
xor eax, eax
mov dword [0x4fd894], eax
mov edx, dword [0x4fa44c]
mov esi, dword [eax + 0x22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
add esi, ebx
mov dword [esp + 0x10], eax
je 0x40b2f2
test esi, 0xffff0000
jne 0x40b2f6
movzx edi, si
call fcn.004030b0
test eax, eax
je 0x40b320
push eax
mov eax, edi
lea edi, [esp + 0x14]
call fcn.00403420
jmp 0x40b320
xor eax, eax
jmp 0x40b30f
mov eax, esi
lea edx, [eax + 2]
jmp 0x40b300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b300
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
call fcn.004034c0
mov ebx, dword [esp + 0x1c]
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b34a
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b343
mov esi, eax
call fcn.00411220
jmp 0x40b345
xor eax, eax
mov dword [0x4fd894], eax
mov edi, dword [esp + 0x14]
add eax, 0x1e78
push eax
push edi
lea edx, [esp + 0x18]
push edx
call fcn.0040a210
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40b389
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40b382
mov esi, eax
call fcn.00411220
jmp 0x40b384
xor eax, eax
mov dword [0x4fd894], eax
mov ecx, dword [eax + 0x22b0]
mov esi, dword [esp + 0x10]
add ecx, ebx
push eax
mov edx, esi
call fcn.0040d850
test eax, eax
je 0x40b3a8
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
mov ecx, dword [0x4fd894]
add ebx, 0x410
jmp 0x40b1da
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0
je 0x40b41d
cmp dword [0x4fd89c], 0
jne 0x40b416
push 1
call fcn.0042ec9c
add esp, 4
mov dword [0x4fd89c], eax
call fcn.004139f0
mov byte [esi], al
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b43d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b45d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b47d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4