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

Disassembly:
push 0xffffffffffffffff
push 0x455881
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470050]
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.00408540
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x4a4], 0
call fcn.004046a0
add esp, 4
lea esi, [edi + 0x248]
call fcn.00404e70
lea ecx, [esp + 0x4c]
push ecx
call fcn.00408540
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 0x40734c
cmp ebx, dword [esp + 0x30]
je 0x407351
call fcn.0042c4d4
cmp ebp, esi
je 0x40794f
test ebx, ebx
jne 0x407379
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40736e
call fcn.0042c4d4
cmp dword [ebp + 0x20], 8
jb 0x40737d
mov eax, dword [ebp + 0xc]
jmp 0x407380
mov eax, dword [ebx]
jmp 0x407364
lea eax, [ebp + 0xc]
mov ecx, str.install
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4073ab
test dx, dx
je 0x4073a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4073ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x407385
xor eax, eax
jmp 0x4073b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4073be
mov byte [esp + 0x17], 1
jmp 0x40792e
test ebx, ebx
jne 0x4073e2
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4073d3
call fcn.0042c4d4
mov esi, 8
cmp dword [ebp + 0x20], esi
jb 0x4073e6
mov eax, dword [ebp + 0xc]
jmp 0x4073e9
mov eax, dword [ebx]
jmp 0x4073c9
lea eax, [ebp + 0xc]
mov ecx, str.uninstall_game
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407416
test dx, dx
je 0x407412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4073f0
xor eax, eax
jmp 0x40741b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40742b
mov byte [edi + 0x209], 1
jmp 0x40792e
test ebx, ebx
jne 0x40744a
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407440
call fcn.0042c4d4
cmp dword [ebp + 0x20], esi
jb 0x40744e
mov eax, dword [ebp + 0xc]
jmp 0x407451
mov eax, dword [ebx]
jmp 0x407436
lea eax, [ebp + 0xc]
mov ecx, str._autologging
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40747c
test dx, dx
je 0x407478
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40747c
add eax, 4
add ecx, 4
test dx, dx
jne 0x407456
xor eax, eax
jmp 0x407481
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40748f
mov byte [esp + 0x27], 1
jmp 0x40792e
test ebx, ebx
jne 0x4074ae
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x4074a4
call fcn.0042c4d4
cmp dword [ebp + 0x20], esi
jb 0x4074b2
mov eax, dword [ebp + 0xc]
jmp 0x4074b5
mov eax, dword [ebx]
jmp 0x40749a
lea eax, [ebp + 0xc]
mov ecx, str._norestart
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4074e6
test dx, dx
je 0x4074e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4074e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4074c0
xor eax, eax
jmp 0x4074eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4074fb
mov byte [edi + 0x20a], 1
jmp 0x40792e
test ebx, ebx
jne 0x40751a
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407510
call fcn.0042c4d4
cmp dword [ebp + 0x20], esi
jb 0x40751e
mov eax, dword [ebp + 0xc]
jmp 0x407521
mov eax, dword [ebx]
jmp 0x407506
lea eax, [ebp + 0xc]
mov ecx, str._keepMaintenanceLog
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40754c
test dx, dx
je 0x407548
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40754c
add eax, 4
add ecx, 4
test dx, dx
jne 0x407526
xor eax, eax
jmp 0x407551
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407561
mov byte [edi + 0x20b], 1
jmp 0x40792e
test ebx, ebx
jne 0x407580
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407576
call fcn.0042c4d4
cmp dword [ebp + 0x20], esi
jb 0x407584
mov eax, dword [ebp + 0xc]
jmp 0x407587
mov eax, dword [ebx]
jmp 0x40756c
lea eax, [ebp + 0xc]
mov ecx, str._installPath
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4075b6
test dx, dx
je 0x4075b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4075b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407590
xor eax, eax
jmp 0x4075bb
sbb eax, eax
sbb eax, 0xffffffff
lea esi, [esp + 0x1c]
test eax, eax
jne 0x4076ca
call fcn.00408610
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
test ebx, ebx
je 0x4075de
cmp ebx, dword [esp + 0x30]
je 0x4075e3
call fcn.0042c4d4
mov ebp, dword [esp + 0x20]
cmp ebp, esi
je 0x40794f
lea esi, [esp + 0x1c]
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x407603
mov esi, dword [eax + 4]
jmp 0x407606
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 0x407640
movzx ecx, word [esi + eax]
test cx, cx
je 0x407640
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407620
jmp 0x407644
test edx, edx
jne 0x407647
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 0x407651
sub eax, edx
sar eax, 1
je 0x40792a
mov ecx, edi
mov edx, eax
lea ebx, [ebx]
cmp word [ecx], 0x2f
jne 0x40767e
mov esi, 0x5c
mov word [ecx], si
add ecx, 2
sub edx, 1
jne 0x407670
test eax, eax
jbe 0x40792a
mov ecx, dword [esp + 0x18]
cmp word [ecx + eax*2 + 0x44e], 0x5c
je 0x40792a
cmp eax, 0x102
jae 0x40792a
mov edx, 0x5c
mov word [ecx + eax*2 + 0x450], dx
xor edx, edx
mov word [ecx + eax*2 + 0x452], dx
mov edi, ecx
jmp 0x40792e
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x4076da
mov eax, dword [eax + 4]
jmp 0x4076dd
add eax, 4
push 0xd
push str._desktopIcon
push eax
call fcn.0042d0dd
add esp, 0xc
lea esi, [esp + 0x1c]
test eax, eax
jne 0x407753
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x407705
mov eax, dword [eax + 4]
jmp 0x407708
add eax, 4
cmp word [eax + 0x1a], 0x30
jne 0x407720
mov eax, 0x30
mov word [edi + 0x20e], ax
jmp 0x40792e
lea esi, [esp + 0x1c]
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x407734
mov eax, dword [eax + 4]
jmp 0x407737
add eax, 4
cmp word [eax + 0x1a], 0x31
jne 0x40792a
mov ecx, 0x31
mov word [edi + 0x20e], cx
jmp 0x40792e
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x407763
mov eax, dword [eax + 4]
jmp 0x407766
add eax, 4
push 0xf
push str._startmenuIcon
push eax
call fcn.0042d0dd
add esp, 0xc
lea esi, [esp + 0x1c]
test eax, eax
jne 0x4077dc
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x40778e
mov eax, dword [eax + 4]
jmp 0x407791
add eax, 4
cmp word [eax + 0x1e], 0x30
jne 0x4077a9
mov edx, 0x30
mov word [edi + 0x226], dx
jmp 0x40792e
lea esi, [esp + 0x1c]
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x4077bd
mov eax, dword [eax + 4]
jmp 0x4077c0
add eax, 4
cmp word [eax + 0x1e], 0x31
jne 0x40792a
mov eax, 0x31
mov word [edi + 0x226], ax
jmp 0x40792e
call fcn.004085e0
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4077f0
mov eax, dword [eax + 4]
jmp 0x4077f3
add eax, 4
mov ecx, str._locale
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40781e
test dx, dx
je 0x40781a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40781e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4077f8
xor eax, eax
jmp 0x407823
sbb eax, eax
sbb eax, 0xffffffff
lea esi, [esp + 0x1c]
test eax, eax
jne 0x4078bc
call fcn.00408610
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.00408640
test al, al
jne 0x40794f
mov esi, edi
call fcn.004085e0
cmp dword [eax + 0x18], 8
jb 0x40786b
mov esi, dword [eax + 4]
jmp 0x40786e
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 0x4078aa
movzx ecx, word [esi + eax]
test cx, cx
je 0x4078aa
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407880
mov ebp, dword [esp + 0x20]
sub eax, 2
mov word [eax], dx
jmp 0x407926
test edx, edx
jne 0x4078b1
sub eax, 2
mov ebp, dword [esp + 0x20]
xor edx, edx
mov word [eax], dx
jmp 0x407926
call fcn.004085e0
cmp dword [eax + 0x18], edi
jb 0x4078cb
mov eax, dword [eax + 4]
jmp 0x4078ce
add eax, 4
push 5
push str._Opt:
push eax
call fcn.0042d0dd
add esp, 0xc
test eax, eax
jne 0x40792a
lea esi, [esp + 0x1c]
call fcn.004085e0
cmp dword [eax + 0x18], edi
jb 0x4078f5
mov eax, dword [eax + 4]
jmp 0x4078f8
add eax, 4
add eax, 0xa
lea ecx, [esp + 0x68]
call fcn.00402680
lea ebx, [esp + 0x4c]
mov byte [esp + 0x4a0], 2
call fcn.004066d0
lea esi, [esp + 0x68]
mov byte [esp + 0x4a0], 1
call fcn.004026f0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x40794b
call fcn.0042c4d4
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x407943
call fcn.0042c4d4
mov ebp, dword [ebp]
jmp 0x40733a
mov eax, dword [ebx]
jmp 0x407939
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00404600
cmp byte [esp + 0x27], 0
je 0x407b1b
lea eax, [esp + 0x84]
mov esi, edi
mov ecx, eax
mov edx, 0x104
sub esi, ecx
jmp 0x407980
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4079a0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4079a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407980
jmp 0x4079a4
test edx, edx
jne 0x4079a7
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 0x407a78
cmp eax, 1
je 0x407a78
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x407a71
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407a71
push 0
push 5
lea ecx, [esp + 0x294]
push ecx
push 0
call eax
cmp eax, 1
jne 0x407a71
lea eax, [esp + 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a15
sub eax, edx
sar eax, 1
je 0x407a3d
cmp word [esp + eax*2 + 0x28a], 0x5c
lea eax, [esp + eax*2 + 0x28a]
jne 0x407a3d
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.004012c0
add esp, 0x10
push 0
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x407a78
mov byte [edi + 0xc70], 0
lea eax, [esp + 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a82
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, 0x100
ja 0x407abe
cmp word [esp + eax*2 + 0x82], 0x5c
je 0x407abe
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 0x407ae0
lea edx, [esp + 0x84]
push edx
push str._sInstallLog.txt
push 0x104
lea eax, [edi + 0xc72]
push eax
jmp 0x407af9
lea ecx, [esp + 0x84]
push ecx
push str._sMaintenanceLog.txt
push 0x104
lea edx, [edi + 0xc72]
push edx
call fcn.004012c0
add esp, 0x10
cmp byte [edi + 0xc70], 0
je 0x407b1b
mov esi, edi
call fcn.004081a0
test al, al
jne 0x407b1b
mov byte [edi + 0xc70], al
cmp byte [esp + 0x17], 0
je 0x407be4
lea eax, [edi + 0x450]
xor ecx, ecx
cmp cx, word [eax]
jne 0x407ba0
push str.ERROR:_Install_command_line_parameter_missing__installPath.
mov edx, edi
push edx
call fcn.00408010
add esp, 8
lea ebx, [esp + 0x4c]
call fcn.00408690
mov eax, dword [esp + 0x60]
push eax
call fcn.0042c62b
mov ecx, dword [esp + 0x50]
add esp, 4
push ecx
mov dword [esp + 0x64], 0
call fcn.0042c62b
add esp, 4
lea ebx, [esp + 0x30]
call fcn.00408690
mov edx, dword [esp + 0x44]
push edx
call fcn.0042c62b
mov eax, dword [esp + 0x34]
add esp, 4
push eax
mov dword [esp + 0x48], 0
call fcn.0042c62b
add esp, 4
xor al, al
jmp 0x407e04
xor ecx, ecx
cmp cx, word [edi + 0x248]
lea esi, [edi + 0x248]
jne 0x407bb8
push str.ERROR:_Install_command_line_parameter_missing__locale.
jmp 0x407b38
push eax
push str.Install_Location:__s
push edi
mov byte [edi + 0x208], 1
mov byte [edi + 0x209], 0
call fcn.00408010
add esp, 0xc
push esi
push str.Install_Locale:__s
push edi
call fcn.00408010
add esp, 0xc
mov eax, dword [esp + 0x64]
mov dword [edi + 0x240], eax
test eax, eax
je 0x407d9a
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c1de
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
lea esp, [esp]
mov esi, dword [esp + 0x60]
test ebp, ebp
je 0x407c3e
cmp ebp, dword [esp + 0x4c]
je 0x407c43
call fcn.0042c4d4
cmp edi, esi
je 0x407d9a
test ebp, ebp
jne 0x407ce8
call fcn.0042c4d4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407c64
call fcn.0042c4d4
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.0042c1de
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 0x407cf0
call fcn.0042c4d4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407ca9
call fcn.0042c4d4
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.0042e060
add esp, 0xc
test ebp, ebp
jne 0x407cf5
call fcn.0042c4d4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407cd9
call fcn.0042c4d4
cmp dword [edi + 0x20], 8
jb 0x407cfa
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], edx
jmp 0x407d01
mov eax, dword [ebp]
jmp 0x407c5a
mov eax, dword [ebp]
jmp 0x407c9f
mov eax, dword [ebp]
jmp 0x407ccf
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x407d5d
call fcn.0042c4d4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407d16
call fcn.0042c4d4
mov ecx, dword [edi + 0x1c]
add ecx, 1
mov edx, dword [esi + 0x244]
mov eax, dword [ebx + edx]
je 0x407d72
cmp ecx, 0x7fffffff
ja 0x407d72
mov esi, dword [esp + 0x1c]
mov ebx, SysReAllocString
sub ebx, ecx
mov edx, ecx
sub esi, eax
mov edi, edi
lea ecx, [edx + ebx]
test ecx, ecx
je 0x407d62
movzx ecx, word [eax + esi]
test cx, cx
je 0x407d62
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407d40
jmp 0x407d66
mov eax, dword [ebp]
jmp 0x407d0c
test edx, edx
jne 0x407d69
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 0x407d95
call fcn.0042c4d4
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407d8e
call fcn.0042c4d4
mov edi, dword [edi]
jmp 0x407c30
mov eax, dword [ebp]
jmp 0x407d84
mov eax, dword [esp + 0x18]
push str.Initialized_installation_config.
push eax
call fcn.00408010
add esp, 8
lea ebx, [esp + 0x4c]
call fcn.00408690
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042c62b
mov edx, dword [esp + 0x50]
add esp, 4
push edx
mov dword [esp + 0x64], 0
call fcn.0042c62b
add esp, 4
lea ebx, [esp + 0x30]
call fcn.00408690
mov eax, dword [esp + 0x44]
push eax
call fcn.0042c62b
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
mov dword [esp + 0x48], 0
call fcn.0042c62b
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.0042c1e9
add esp, 0x490
ret