Function at 0x10035200
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x100b7a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
lea ebx, [esi + 0x64]
test edi, edi
jne 0x10035254
xor ebp, ebp
jmp 0x1003525d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.100096e0
test eax, eax
je 0x10035281
mov eax, dword [ebx]
push ebp
push edi
push eax
call fcn.1007f6e0
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
add esp, 0xc
mov byte [edx + ebp], 0
lea ecx, [esp + 0x24]
call fcn.10018f70
mov eax, dword [esi + 0x48]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x28], 0xffffffa8
call fcn.100344e0
cmp byte [edi + 1], 0x61
jne 0x100352e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x100be01c
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp dword [esp + 0x14], 0
jne 0x100352e0
mov edx, dword [esp + 0x3c]
push edx
jmp 0x100354b0
lea ecx, [esp + 0x48]
call fcn.10014970
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa4], 1
call fcn.10014e70
push edi
lea ecx, [esp + 0x30]
call fcn.1007bb30
lea eax, [esp + 0x29]
push eax
lea ecx, [esp + 0x30]
call fcn.1007bb30
mov edi, dword [0x100d302c]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 2
call fcn.10013db0
cmp dword [esi + 0x54], eax
jae 0x1003546a
mov ecx, dword [esi + 0x54]
push ecx
lea ecx, [esp + 0x4c]
call fcn.10013dc0
cmp dword [eax + 8], 0
je 0x100353e9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100be018
call ebx
mov edi, eax
push edi
lea ecx, [esp + 0x18]
call fcn.100096e0
test eax, eax
je 0x10035385
mov ebp, dword [esp + 0x14]
push edi
push 0x100be018
push ebp
call fcn.1007f6e0
mov dword [ebp - 8], edi
add esp, 0xc
mov byte [edi + ebp], 0
mov edx, dword [esi + 0x54]
push edx
lea ecx, [esp + 0x4c]
call fcn.10013dc0
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
push 0x100be014
push 0x100be014
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov edi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x30]
call fcn.1007bb30
lea ecx, [esp + 0x29]
push ecx
lea ecx, [esp + 0x30]
call fcn.1007bb30
push 0x100bad1e
lea ecx, [esp + 0x30]
call fcn.1007bb30
lea edx, [esp + 0x29]
push edx
jmp 0x1003544c
mov eax, dword [esi + 0x54]
push eax
lea ecx, [esp + 0x4c]
call fcn.10013dc0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
call fcn.1007bb30
lea ecx, [esp + 0x29]
push ecx
lea ecx, [esp + 0x30]
call fcn.1007bb30
mov edx, dword [esi + 0x54]
push edx
lea ecx, [esp + 0x4c]
call fcn.10013dc0
mov eax, dword [eax + 4]
push 0xa
lea ecx, [esp + 0x88]
shr eax, 0xa
push ecx
push eax
call fcn.100acd6d
add esp, 0xc
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x30]
call fcn.1007bb30
lea eax, [esp + 0x29]
push eax
lea ecx, [esp + 0x30]
call fcn.1007bb30
inc dword [esi + 0x54]
lea ecx, [esp + 0x48]
call fcn.10013db0
cmp dword [esi + 0x54], eax
jb 0x10035337
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.10019460
lea edx, [edi - 0xc]
cmp edx, dword [0x100d3028]
je 0x1003549a
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1003549a
push esi
call fcn.1007f6d5
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 0
call fcn.100145d0
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0xa4], 0xffffffff
call fcn.1007f6d5
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.1007ba60
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.1007fec9
add esp, 0x90
ret 8