Function at 0x4073d0
Capabilities:
Create directory
Get disk information
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x456061
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471050]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
mov edi, ecx
push eax
mov dword [esp + 0x1c], edi
mov esi, edx
call fcn.00408670
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x4a4], 0
call fcn.00404760
add esp, 4
lea esi, [edi + 0x248]
call fcn.00404f30
lea ecx, [esp + 0x4c]
push ecx
call fcn.00408670
mov byte [esp + 0x4a0], 1
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov ebp, dword [edx]
mov byte [esp + 0x17], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], ebp
test ebx, ebx
je 0x40747c
cmp ebx, dword [esp + 0x30]
je 0x407481
call fcn.0042ccd4
cmp ebp, esi
je 0x407a7f
test ebx, ebx
jne 0x4074a9
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40749e
call fcn.0042ccd4
cmp dword [ebp + 0x20], 8
jb 0x4074ad
mov eax, dword [ebp + 0xc]
jmp 0x4074b0
mov eax, dword [ebx]
jmp 0x407494
lea eax, [ebp + 0xc]
mov ecx, str.install
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4074db
test dx, dx
je 0x4074d7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4074db
add eax, 4
add ecx, 4
test dx, dx
jne 0x4074b5
xor eax, eax
jmp 0x4074e0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4074ee
mov byte [esp + 0x17], 1
jmp 0x407a5e
test ebx, ebx
jne 0x407512
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407503
call fcn.0042ccd4
mov esi, 8
cmp dword [ebp + 0x20], esi
jb 0x407516
mov eax, dword [ebp + 0xc]
jmp 0x407519
mov eax, dword [ebx]
jmp 0x4074f9
lea eax, [ebp + 0xc]
mov ecx, str.uninstall_game
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407546
test dx, dx
je 0x407542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407546
add eax, 4
add ecx, 4
test dx, dx
jne 0x407520
xor eax, eax
jmp 0x40754b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40755b
mov byte [edi + 0x209], 1
jmp 0x407a5e
test ebx, ebx
jne 0x40757a
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407570
call fcn.0042ccd4
cmp dword [ebp + 0x20], esi
jb 0x40757e
mov eax, dword [ebp + 0xc]
jmp 0x407581
mov eax, dword [ebx]
jmp 0x407566
lea eax, [ebp + 0xc]
mov ecx, str._autologging
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4075ac
test dx, dx
je 0x4075a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4075ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x407586
xor eax, eax
jmp 0x4075b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4075bf
mov byte [esp + 0x27], 1
jmp 0x407a5e
test ebx, ebx
jne 0x4075de
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4075d4
call fcn.0042ccd4
cmp dword [ebp + 0x20], esi
jb 0x4075e2
mov eax, dword [ebp + 0xc]
jmp 0x4075e5
mov eax, dword [ebx]
jmp 0x4075ca
lea eax, [ebp + 0xc]
mov ecx, str._norestart
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407616
test dx, dx
je 0x407612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407616
add eax, 4
add ecx, 4
test dx, dx
jne 0x4075f0
xor eax, eax
jmp 0x40761b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40762b
mov byte [edi + 0x20a], 1
jmp 0x407a5e
test ebx, ebx
jne 0x40764a
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407640
call fcn.0042ccd4
cmp dword [ebp + 0x20], esi
jb 0x40764e
mov eax, dword [ebp + 0xc]
jmp 0x407651
mov eax, dword [ebx]
jmp 0x407636
lea eax, [ebp + 0xc]
mov ecx, str._keepMaintenanceLog
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40767c
test dx, dx
je 0x407678
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40767c
add eax, 4
add ecx, 4
test dx, dx
jne 0x407656
xor eax, eax
jmp 0x407681
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407691
mov byte [edi + 0x20b], 1
jmp 0x407a5e
test ebx, ebx
jne 0x4076b0
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4076a6
call fcn.0042ccd4
cmp dword [ebp + 0x20], esi
jb 0x4076b4
mov eax, dword [ebp + 0xc]
jmp 0x4076b7
mov eax, dword [ebx]
jmp 0x40769c
lea eax, [ebp + 0xc]
mov ecx, str._installPath
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4076e6
test dx, dx
je 0x4076e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4076e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4076c0
xor eax, eax
jmp 0x4076eb
sbb eax, eax
sbb eax, 0xffffffff
lea esi, [esp + 0x1c]
test eax, eax
jne 0x4077fa
call fcn.00408710
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
test ebx, ebx
je 0x40770e
cmp ebx, dword [esp + 0x30]
je 0x407713
call fcn.0042ccd4
mov ebp, dword [esp + 0x20]
cmp ebp, esi
je 0x407a7f
lea esi, [esp + 0x1c]
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x407733
mov esi, dword [eax + 4]
jmp 0x407736
lea esi, [eax + 4]
mov edi, dword [esp + 0x18]
add edi, 0x450
mov edx, 0x104
mov eax, edi
sub esi, edi
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x407770
movzx ecx, word [esi + eax]
test cx, cx
je 0x407770
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407750
jmp 0x407774
test edx, edx
jne 0x407777
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407781
sub eax, edx
sar eax, 1
je 0x407a5a
mov ecx, edi
mov edx, eax
lea ebx, [ebx]
cmp word [ecx], 0x2f
jne 0x4077ae
mov esi, 0x5c
mov word [ecx], si
add ecx, 2
sub edx, 1
jne 0x4077a0
test eax, eax
jbe 0x407a5a
mov ecx, dword [esp + 0x18]
cmp word [ecx + eax*2 + 0x44e], 0x5c
je 0x407a5a
cmp eax, 0x102
jae 0x407a5a
mov edx, 0x5c
mov word [ecx + eax*2 + 0x450], dx
xor edx, edx
mov word [ecx + eax*2 + 0x452], dx
mov edi, ecx
jmp 0x407a5e
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x40780a
mov eax, dword [eax + 4]
jmp 0x40780d
add eax, 4
push 0xd
push str._desktopIcon
push eax
call fcn.0042d8e0
add esp, 0xc
lea esi, [esp + 0x1c]
test eax, eax
jne 0x407883
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x407835
mov eax, dword [eax + 4]
jmp 0x407838
add eax, 4
cmp word [eax + 0x1a], 0x30
jne 0x407850
mov eax, 0x30
mov word [edi + 0x20e], ax
jmp 0x407a5e
lea esi, [esp + 0x1c]
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x407864
mov eax, dword [eax + 4]
jmp 0x407867
add eax, 4
cmp word [eax + 0x1a], 0x31
jne 0x407a5a
mov ecx, 0x31
mov word [edi + 0x20e], cx
jmp 0x407a5e
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x407893
mov eax, dword [eax + 4]
jmp 0x407896
add eax, 4
push 0xf
push str._startmenuIcon
push eax
call fcn.0042d8e0
add esp, 0xc
lea esi, [esp + 0x1c]
test eax, eax
jne 0x40790c
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x4078be
mov eax, dword [eax + 4]
jmp 0x4078c1
add eax, 4
cmp word [eax + 0x1e], 0x30
jne 0x4078d9
mov edx, 0x30
mov word [edi + 0x226], dx
jmp 0x407a5e
lea esi, [esp + 0x1c]
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x4078ed
mov eax, dword [eax + 4]
jmp 0x4078f0
add eax, 4
cmp word [eax + 0x1e], 0x31
jne 0x407a5a
mov eax, 0x31
mov word [edi + 0x226], ax
jmp 0x407a5e
call fcn.0040fa60
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x407920
mov eax, dword [eax + 4]
jmp 0x407923
add eax, 4
mov ecx, str._locale
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40794e
test dx, dx
je 0x40794a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40794e
add eax, 4
add ecx, 4
test dx, dx
jne 0x407928
xor eax, eax
jmp 0x407953
sbb eax, eax
sbb eax, 0xffffffff
lea esi, [esp + 0x1c]
test eax, eax
jne 0x4079ec
call fcn.00408710
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
lea esi, [esp + 0x28]
lea edi, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
call fcn.00408740
test al, al
jne 0x407a7f
mov esi, edi
call fcn.0040fa60
cmp dword [eax + 0x18], 8
jb 0x40799b
mov esi, dword [eax + 4]
jmp 0x40799e
lea esi, [eax + 4]
mov eax, dword [esp + 0x18]
add eax, 0x248
mov edx, 0x104
sub esi, eax
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4079da
movzx ecx, word [esi + eax]
test cx, cx
je 0x4079da
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4079b0
mov ebp, dword [esp + 0x20]
sub eax, 2
mov word [eax], dx
jmp 0x407a56
test edx, edx
jne 0x4079e1
sub eax, 2
mov ebp, dword [esp + 0x20]
xor edx, edx
mov word [eax], dx
jmp 0x407a56
call fcn.0040fa60
cmp dword [eax + 0x18], edi
jb 0x4079fb
mov eax, dword [eax + 4]
jmp 0x4079fe
add eax, 4
push 5
push str._Opt:
push eax
call fcn.0042d8e0
add esp, 0xc
test eax, eax
jne 0x407a5a
lea esi, [esp + 0x1c]
call fcn.0040fa60
cmp dword [eax + 0x18], edi
jb 0x407a25
mov eax, dword [eax + 4]
jmp 0x407a28
add eax, 4
add eax, 0xa
lea ecx, [esp + 0x68]
call fcn.004026b0
lea ebx, [esp + 0x4c]
mov byte [esp + 0x4a0], 2
call fcn.00406800
lea esi, [esp + 0x68]
mov byte [esp + 0x4a0], 1
call fcn.00402720
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x407a7b
call fcn.0042ccd4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407a73
call fcn.0042ccd4
mov ebp, dword [ebp]
jmp 0x40746a
mov eax, dword [ebx]
jmp 0x407a69
mov edi, dword [esp + 0x18]
mov esi, edi
call fcn.00404680
cmp byte [esp + 0x27], 0
je 0x407c49
lea eax, [esp + 0x84]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x407ac5
movzx ecx, word [esi + eax]
test cx, cx
je 0x407ac5
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407aa5
jmp 0x407ac9
test edx, edx
jne 0x407acc
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x84]
push eax
mov byte [edi + 0xc70], 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x407ba3
cmp eax, 1
je 0x407ba3
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x407b9c
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407b9c
push 0
push 5
lea ecx, [esp + 0x294]
push ecx
push 0
call eax
cmp eax, 1
jne 0x407b9c
lea eax, [esp + 0x28c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b40
sub eax, edx
sar eax, 1
je 0x407b68
cmp word [esp + eax*2 + 0x28a], 0x5c
lea eax, [esp + eax*2 + 0x28a]
jne 0x407b68
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x28c]
push eax
push str._sEAInstallerLog_
lea ecx, [esp + 0x8c]
push 0x104
push ecx
call fcn.004012b0
add esp, 0x10
push 0
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x407ba3
mov byte [edi + 0xc70], 0
lea eax, [esp + 0x84]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407bb0
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x100
ja 0x407bec
cmp word [esp + eax*2 + 0x82], 0x5c
je 0x407bec
mov edx, 0x5c
xor ecx, ecx
mov word [esp + eax*2 + 0x84], dx
mov word [esp + eax*2 + 0x86], cx
cmp byte [esp + 0x17], 0
je 0x407c0e
lea edx, [esp + 0x84]
push edx
push str._sInstallLog.txt
push 0x104
lea eax, [edi + 0xc72]
push eax
jmp 0x407c27
lea ecx, [esp + 0x84]
push ecx
push str._sMaintenanceLog.txt
push 0x104
lea edx, [edi + 0xc72]
push edx
call fcn.004012b0
add esp, 0x10
cmp byte [edi + 0xc70], 0
je 0x407c49
mov esi, edi
call fcn.004082d0
test al, al
jne 0x407c49
mov byte [edi + 0xc70], al
cmp byte [esp + 0x17], 0
je 0x407d12
lea eax, [edi + 0x450]
xor ecx, ecx
cmp cx, word [eax]
jne 0x407cce
push str.ERROR:_Install_command_line_parameter_missing__installPath.
mov edx, edi
push edx
call fcn.00408140
add esp, 8
lea ebx, [esp + 0x4c]
call fcn.00408780
mov eax, dword [esp + 0x60]
push eax
call fcn.0042ce2b
mov ecx, dword [esp + 0x50]
add esp, 4
push ecx
mov dword [esp + 0x64], 0
call fcn.0042ce2b
add esp, 4
lea ebx, [esp + 0x30]
call fcn.00408780
mov edx, dword [esp + 0x44]
push edx
call fcn.0042ce2b
mov eax, dword [esp + 0x34]
add esp, 4
push eax
mov dword [esp + 0x48], 0
call fcn.0042ce2b
add esp, 4
xor al, al
jmp 0x407f29
xor ecx, ecx
cmp cx, word [edi + 0x248]
lea esi, [edi + 0x248]
jne 0x407ce6
push str.ERROR:_Install_command_line_parameter_missing__locale.
jmp 0x407c66
push eax
push str.Install_Location:__s
push edi
mov byte [edi + 0x208], 1
mov byte [edi + 0x209], 0
call fcn.00408140
add esp, 0xc
push esi
push str.Install_Locale:__s
push edi
call fcn.00408140
add esp, 0xc
mov eax, dword [esp + 0x64]
mov dword [edi + 0x240], eax
test eax, eax
je 0x407ebf
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c9de
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x50]
mov ecx, edi
mov dword [ecx + 0x244], eax
mov edi, dword [edx]
add esp, 4
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x60]
test ebp, ebp
je 0x407d65
cmp ebp, dword [esp + 0x4c]
je 0x407d6a
call fcn.0042ccd4
cmp edi, esi
je 0x407ebf
test ebp, ebp
jne 0x407e0f
call fcn.0042ccd4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407d8b
call fcn.0042ccd4
mov eax, dword [edi + 0x1c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c9de
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x244]
mov ebx, dword [esp + 0x2c]
add esp, 4
mov dword [ebx + ecx], eax
test ebp, ebp
jne 0x407e17
call fcn.0042ccd4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407dd0
call fcn.0042ccd4
mov edx, dword [edi + 0x1c]
mov eax, dword [esi + 0x244]
mov ecx, dword [ebx + eax]
add edx, 2
push edx
push 0
push ecx
call fcn.0042e870
add esp, 0xc
test ebp, ebp
jne 0x407e1c
call fcn.0042ccd4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407e00
call fcn.0042ccd4
cmp dword [edi + 0x20], 8
jb 0x407e21
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], edx
jmp 0x407e28
mov eax, dword [ebp]
jmp 0x407d81
mov eax, dword [ebp]
jmp 0x407dc6
mov eax, dword [ebp]
jmp 0x407df6
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x407e82
call fcn.0042ccd4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407e3d
call fcn.0042ccd4
mov ecx, dword [edi + 0x1c]
add ecx, 1
mov edx, dword [esi + 0x244]
mov eax, dword [ebx + edx]
je 0x407e97
cmp ecx, 0x7fffffff
ja 0x407e97
mov esi, dword [esp + 0x1c]
mov ebx, SysReAllocString
sub ebx, ecx
mov edx, ecx
sub esi, eax
lea ecx, [ebx + edx]
test ecx, ecx
je 0x407e87
movzx ecx, word [esi + eax]
test cx, cx
je 0x407e87
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407e65
jmp 0x407e8b
mov eax, dword [ebp]
jmp 0x407e33
test edx, edx
jne 0x407e8e
sub eax, 2
mov ebx, dword [esp + 0x28]
xor edx, edx
mov word [eax], dx
add ebx, 4
mov dword [esp + 0x28], ebx
test ebp, ebp
jne 0x407eba
call fcn.0042ccd4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407eb3
call fcn.0042ccd4
mov edi, dword [edi]
jmp 0x407d57
mov eax, dword [ebp]
jmp 0x407ea9
mov eax, dword [esp + 0x18]
push str.Initialized_installation_config.
push eax
call fcn.00408140
add esp, 8
lea ebx, [esp + 0x4c]
call fcn.00408780
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042ce2b
mov edx, dword [esp + 0x50]
add esp, 4
push edx
mov dword [esp + 0x64], 0
call fcn.0042ce2b
add esp, 4
lea ebx, [esp + 0x30]
call fcn.00408780
mov eax, dword [esp + 0x44]
push eax
call fcn.0042ce2b
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
mov dword [esp + 0x48], 0
call fcn.0042ce2b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x490
ret