Function at 0x43830c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5659f3
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3a8], ecx
mov eax, dword [ebp - 0x3a8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jbe 0x4383a5
mov ecx, dword [ebp - 0x3a8]
add ecx, 0x34
call fcn.004071e0
mov dword [ebp - 0x35c], eax
push 0
push dword [ebp - 0x35c]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x4383a5
cmp dword [ebp + 8], 0
je 0x43839e
push dword [0x5c0400]
push 0
mov eax, dword [ebp - 0x3a8]
add eax, 0x34
push eax
mov ecx, dword [ebp + 8]
call fcn.00406560
mov al, 1
jmp 0x438939
lea eax, [ebp - 0x2f8]
push eax
call fcn.00427da7
pop ecx
and dword [ebp - 4], 0
call fcn.004249e0
mov ecx, eax
call fcn.00424bb0
mov dword [ebp - 0x2d8], eax
push str.wegame_require_space_mb
lea ecx, [ebp - 0x2c]
call fcn.00404b40
mov byte [ebp - 4], 1
push 0x400
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2d8]
call fcn.00425406
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406430
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2fc]
shl eax, 0xa
shl eax, 0xa
cdq
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], edx
mov byte [ebp - 0x2d9], 0
lea eax, [ebp - 0x375]
mov dword [ebp - 0x374], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x3ac], eax
mov byte [ebp - 4], 3
push 0
push 0
lea ecx, [ebp - 0x318]
call fcn.00406660
mov byte [ebp - 4], 4
and dword [ebp - 0xc4], 0
xor eax, eax
lea edi, [ebp - 0xc0]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2f8]
call fcn.004071e0
mov dword [ebp - 0x37c], eax
push 0
push 0
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4384b7
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x2d0]
jb 0x4384b7
ja 0x4384b0
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0x2d4]
jb 0x4384b7
mov byte [ebp - 0x2d9], 1
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x438514
movzx eax, byte [ebp - 0x2d9]
test eax, eax
je 0x4384dd
mov dword [ebp - 0x3b0], 0x571fbc
jmp 0x4384e7
mov dword [ebp - 0x3b0], 0x571fc4
push dword [ebp - 0x2d0]
push dword [ebp - 0x2d4]
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
push dword [ebp - 0x3b0]
push str._ProcessStateMachine__GetWegameInstallFolder__in_game_disk_s__game_disk_llu_bytes__require_llu_bytes
push 4
call fcn.0041b5a4
add esp, 0x1c
movzx eax, byte [ebp - 0x2d9]
test eax, eax
je 0x4385f4
lea eax, [ebp - 0x48]
push eax
call fcn.0041ebba
mov ecx, eax
call fcn.0041eee6
mov dword [ebp - 0x3b4], eax
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x3b8], eax
mov byte [ebp - 4], 5
push str....._
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00412033
add esp, 0xc
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c0], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x3b8]
push dword [ebp - 0x3c0]
lea eax, [ebp - 0x80]
push eax
call fcn.0041b21f
add esp, 0xc
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x380]
lea ecx, [ebp - 0x318]
call fcn.004064e0
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00406660
mov byte [ebp - 4], 6
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00406660
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406660
mov byte [ebp - 4], 4
jmp 0x438606
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x3a8]
call fcn.00438953
xor eax, eax
mov word [ebp - 0x2cc], ax
push 0x206
push 0
lea eax, [ebp - 0x2ca]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x318]
call fcn.004071e0
push eax
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov dword [ebp - 0x384], eax
push dword [ebp - 0x384]
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x318]
call fcn.00406f70
lea eax, [ebp - 0x318]
push eax
call fcn.0041ebba
mov ecx, eax
call fcn.0041fff0
movzx eax, al
test eax, eax
je 0x438773
lea eax, [ebp - 0x38d]
mov dword [ebp - 0x38c], eax
lea eax, [ebp - 0x334]
mov dword [ebp - 0x3c8], eax
mov byte [ebp - 4], 0xb
push 0
push 0
lea ecx, [ebp - 0x334]
call fcn.00406660
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x334]
push eax
call fcn.0041e51b
pop ecx
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x394], eax
cmp dword [ebp - 0x394], 0
jne 0x4386fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._u__u
lea eax, [ebp - 0x334]
push eax
call fcn.0041e310
add esp, 0x10
lea eax, [ebp - 0x334]
push eax
push 0x572050
lea eax, [ebp - 0x9c]
push eax
call fcn.0043be28
add esp, 0xc
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x398], eax
mov byte [ebp - 4], 0xd
push dword [0x5c0400]
push 0
push dword [ebp - 0x398]
lea ecx, [ebp - 0x318]
call fcn.004074b0
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.00406660
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x334]
call fcn.00406660
mov byte [ebp - 4], 4
push 0x572054
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00412033
add esp, 0xc
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d4], eax
mov byte [ebp - 4], 0x10
push dword [ebp - 0x3d4]
call fcn.0042875c
pop ecx
mov byte [ebp - 0x351], al
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.00406660
mov byte [ebp - 4], 4
movzx eax, byte [ebp - 0x351]
test eax, eax
je 0x4388fb
push dword [0x5c0400]
push 0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x3a8]
add ecx, 0x34
call fcn.00406560
cmp dword [ebp + 8], 0
je 0x438819
push dword [0x5c0400]
push 0
mov eax, dword [ebp - 0x3a8]
add eax, 0x34
push eax
mov ecx, dword [ebp + 8]
call fcn.00406560
lea eax, [ebp - 0x3a1]
mov dword [ebp - 0x3a0], eax
lea eax, [ebp - 0x350]
mov dword [ebp - 0x3d8], eax
mov byte [ebp - 4], 0x12
push 0
push 0
lea ecx, [ebp - 0x350]
call fcn.00406430
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0041ba38
pop ecx
pop ecx
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4388a4
cmp dword [ebp - 0x33c], 0x10
jb 0x438883
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x3dc], eax
jmp 0x43888f
lea eax, [ebp - 0x350]
mov dword [ebp - 0x3dc], eax
push dword [ebp - 0x3dc]
push str._ProcessStateMachine__GetWegameInstallFolder__folder_s
push 4
call fcn.0041b5a4
add esp, 0xc
mov byte [ebp - 0x352], 1
mov byte [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0x350]
call fcn.00406430
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0x318]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0x2f8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x352]
jmp 0x438939
mov byte [ebp - 0x353], 0
mov byte [ebp - 4], 0x17
push 0
push 1
lea ecx, [ebp - 0x318]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x18
push 0
push 1
lea ecx, [ebp - 0x2f8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x353]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret 4