Function at 0x4029f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x628
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
mov ebx, dword [esp + 0x630]
push esi
mov eax, ebx
push edi
mov esi, ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a15
sub eax, edx
sar eax, 1
mov edi, eax
xor eax, eax
push 0x210
push eax
lea ecx, [esp + 0x426]
push ecx
mov word [esp + 0x428], ax
call fcn.0043e9f0
xor edx, edx
push 0x1f2
push edx
lea eax, [esp + 0x23e]
push eax
mov word [esp + 0x240], dx
call fcn.0043e9f0
xor ecx, ecx
push 0x1f2
push ecx
lea edx, [esp + 0x56]
push edx
mov word [esp + 0x58], cx
call fcn.0043e9f0
add esp, 0x24
cmp edi, 5
jae 0x402ad2
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xfa
lea eax, [esp + 0x22c]
push eax
push 0xdc
push ecx
call edi
mov eax, dword [esi + 0x40]
push 0xfa
lea edx, [esp + 0x38]
push edx
push 0xdf
push eax
call edi
mov eax, dword [esi + 4]
push 0x10
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x402d68
mov ecx, 0x3a
push ebp
cmp cx, word [ebx + 2]
jne 0x402d19
lea ebp, [ebx + 4]
mov edx, 0x5c
cmp dx, word [ebp]
jne 0x402d19
cmp edi, 0x64
jbe 0x402b44
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xfa
lea eax, [esp + 0x230]
push eax
push 0xde
push ecx
call edi
mov eax, dword [esi + 0x40]
push 0xfa
lea edx, [esp + 0x3c]
push edx
push 0xdf
push eax
call edi
mov eax, dword [esi + 4]
push 0x10
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x234]
push edx
push eax
jmp 0x402d5f
mov eax, 0x2a
mov ecx, 0x2f
mov edx, 0x3a
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov eax, 0x3c
mov ecx, 0x3f
mov edx, 0x22
mov word [esp + 0x22], ax
xor eax, eax
mov word [esp + 0x1e], cx
mov word [esp + 0x20], dx
mov ecx, 0x3e
mov edx, 0x7c
mov word [esp + 0x28], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], dx
xor edi, edi
mov eax, 0x2f
push eax
push ebp
call fcn.0043e2a0
add esp, 8
test eax, eax
jne 0x402c7f
movzx eax, word [esp + edi*2 + 0x1a]
inc edi
test ax, ax
jne 0x402ba2
mov dx, word [ebx]
xor ecx, ecx
push ecx
mov word [esp + 0x30], dx
mov eax, 0x3a
push ecx
lea edx, [esp + 0x18]
mov word [esp + 0x36], ax
push edx
lea eax, [esp + 0x38]
push eax
mov word [esp + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402cd1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0x400
push ecx
push edx
call fcn.0043f510
cmp eax, 0x4b000
jge 0x402cca
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x109
lea eax, [esp + 0x424]
push eax
push 0xdd
push ecx
call edi
movzx edx, word [ebx]
push 0x12c
push edx
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x238]
push ecx
call fcn.004010c0
mov eax, dword [esi + 0x40]
add esp, 0x10
push 0xfa
lea edx, [esp + 0x3c]
push edx
push 0xe0
push eax
call edi
mov eax, dword [esi + 4]
push 0x10
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x234]
push edx
push eax
jmp 0x402d5f
mov edx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xfa
lea ecx, [esp + 0x230]
push ecx
push 0xe6
push edx
call edi
mov ecx, dword [esi + 0x40]
push 0xfa
lea eax, [esp + 0x3c]
push eax
push 0xdf
push ecx
call edi
mov ecx, dword [esi + 4]
push 0x40
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x234]
push eax
push ecx
jmp 0x402d5f
mov al, 1
jmp 0x402d67
mov edx, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xfa
lea ecx, [esp + 0x230]
push ecx
push 0xdc
push edx
call edi
mov ecx, dword [esi + 0x40]
push 0xfa
lea eax, [esp + 0x3c]
push eax
push 0xdf
push ecx
call edi
mov ecx, dword [esi + 4]
push 0x10
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x234]
push eax
push ecx
jmp 0x402d5f
mov eax, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xfa
lea edx, [esp + 0x230]
push edx
push 0xdc
push eax
call edi
mov edx, dword [esi + 0x40]
push 0xfa
lea ecx, [esp + 0x3c]
push ecx
push 0xdf
push edx
call edi
mov edx, dword [esi + 4]
push 0x10
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x234]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop ebp
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e9e1
add esp, 0x628
ret 4