Function at 0x410b10
Capabilities:
Get common file path
Get program files directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b301c
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x6a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x6c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6d4]
push 0x206
mov dword [esp + 0x50], eax
mov edi, edx
xor ebx, ebx
lea eax, [esp + 0x2b2]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x84], ecx
mov word [esp + 0x2b8], dx
call fcn.00587fb0
add esp, 0xc
push 0x206
lea edx, [esp + 0xaa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xb0], cx
call fcn.00587fb0
add esp, 0xc
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410bbf
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x6cc], ebx
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410bf0
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x6cc], 1
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410c22
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x6cc], 2
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410c54
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x6cc], 3
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410c86
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x6cc], 4
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x410cb8
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x2d
push str.http:__www.3dmgame.com_plus_motordl.php_aids
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6d4], 5
call fcn.00401960
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
jle 0x411494
nop
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jl 0x4115c6
cmp ecx, eax
jge 0x4115c6
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
lea eax, [eax + ecx*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00401a80
mov eax, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x2b8]
push edx
push eax
call fcn.00584ee8
lea eax, [esp + 0x2c0]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410d41
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401960
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410d70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x20]
call fcn.00407850
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
cmp eax, ebx
je 0x410de5
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx ecx, word [esi + ecx*2]
cmp cx, 0x5c
je 0x410de5
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx eax, word [esi + ecx*2]
cmp ax, 0x2f
je 0x410de5
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00408400
mov esi, dword [esp + 0x18]
push 0x206
lea ecx, [esp + 0x4ba]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x4c0], ax
call fcn.00587fb0
add esp, 0xc
lea edx, [esp + 0x4b4]
push edx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x4b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410e22
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4b8]
push eax
lea ecx, [esp + 0x30]
call fcn.00401960
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x410e99
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx ecx, word [ebp + ecx*2]
cmp cx, 0x5c
je 0x410e99
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx eax, word [ebp + ecx*2]
cmp ax, 0x2f
je 0x410e99
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.00408400
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00420b00
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x6d0], 6
call fcn.00420bc0
test eax, eax
je 0x4113aa
push str.gameid
lea ecx, [esp + 0x4c]
call fcn.004016c0
push str.Base
lea ecx, [esp + 0x44]
mov byte [esp + 0x6d0], 7
call fcn.004016c0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x7c]
push eax
lea edi, [esp + 0x5c]
mov byte [esp + 0x6d8], 8
call fcn.00421a00
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d0], 9
call fcn.00401a80
mov byte [esp + 0x6cc], 8
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 7
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 6
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.gamepath
lea ecx, [esp + 0x48]
call fcn.004016c0
push str.StartGame
lea ecx, [esp + 0x40]
mov byte [esp + 0x6d0], 0xa
call fcn.004016c0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x84]
push eax
lea edi, [esp + 0x5c]
mov byte [esp + 0x6d8], 0xb
call fcn.00421a00
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d0], 0xc
call fcn.00401a80
mov byte [esp + 0x6cc], 0xb
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411011
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 0xa
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 6
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x411112
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d0], 0xd
call fcn.00401a80
mov byte [esp + 0x6cc], 6
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call fcn.00584007
add esp, 8
test eax, eax
je 0x411112
mov byte [esp + 0x6cc], 5
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00422600
mov edx, dword [esp + 0x50]
push edx
call fcn.005759d0
jmp 0x411479
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebx
je 0x4113aa
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x74], esp
mov esi, esp
push eax
call fcn.00401a10
mov ecx, dword [esp + 0x54]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00414940
cmp eax, ebx
jne 0x4113aa
mov edx, dword [esp + 0x24]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4115bc
cmp eax, ecx
jg 0x4115bc
movzx eax, word [edx + eax*2]
cmp ax, 0x3d
je 0x41117a
push 0x603008
lea ecx, [esp + 0x28]
call fcn.00407920
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407850
lea esi, [esp + 0x8c]
call fcn.0040dc90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0x6d0], 0xe
call fcn.00401a80
lea esi, [esp + 0x80]
call fcn.0041e9b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6d0], 0xf
call fcn.00401a80
mov byte [esp + 0x6cc], 0xe
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x41124a
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5c
je 0x41124a
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4115bc
cmp ecx, eax
jg 0x4115bc
movzx eax, word [edx + ecx*2]
cmp ax, 0x2f
je 0x41124a
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00408400
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
call fcn.00417030
add esp, 4
test al, al
je 0x41126d
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401a80
push str.gamepath
lea ecx, [esp + 0x3c]
call fcn.004016c0
push str.StartGame
lea ecx, [esp + 0x38]
mov byte [esp + 0x6d0], 0x10
call fcn.004016c0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x8c]
push edx
lea edi, [esp + 0x5c]
mov byte [esp + 0x6d8], 0x11
call fcn.00421a00
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x6d8], 0x12
call fcn.00405bb0
add esp, 0xc
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x6d0], 0x13
call fcn.00401a80
mov byte [esp + 0x6cc], 0x12
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 0x11
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41133d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 0x10
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 0xe
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41138d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x8c]
push ecx
call fcn.004174d0
lea esi, [esp + 0x8c]
call fcn.0040dd40
mov byte [esp + 0x6cc], 5
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4113d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x41145f
mov ecx, dword [esp + 0x60]
mov ebp, ecx
cmp eax, ecx
je 0x411452
lea esi, [eax + 0x10]
jmp 0x4113f0
mov eax, dword [esi]
cmp eax, ebx
je 0x411411
mov ecx, dword [esp + 0x70]
mov edi, dword [esi + 4]
push ecx
call fcn.00422d20
mov eax, dword [esi]
add esp, 4
push eax
call fcn.005759d0
add esp, 4
mov eax, dword [esi - 0xc]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.005759d0
mov eax, dword [esi - 0x10]
sub eax, 0x10
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0x1c
lea ecx, [esi - 0x10]
cmp ecx, ebp
jne 0x4113f0
mov eax, dword [esp + 0x5c]
push eax
call fcn.005759d0
mov ebp, dword [esp + 0x2c]
add esp, 4
mov edx, dword [esp + 0x50]
push edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.005759d0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
inc ecx
add esp, 4
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jl 0x410cf0
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x24]
add ecx, 0x6c8
push edx
call fcn.00401a80
lea eax, [esi - 0x10]
mov byte [esp + 0x6cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x6cc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], 1
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 0x411540
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6cc], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6cc], 0xffffffff
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 0x411592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x6c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6a8]
xor ecx, esp
call fcn.005832f8
add esp, 0x6bc
ret 4
push 0x80070057
call fcn.00401b20
call fcn.00575fee
int3