Function at 0x402850
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40437c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push ebx
push ebp
push esi
push edi
push str.yklb
push 0
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
push 0
push 0
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push str.sfwer
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x429]
mov byte [esp + 0x428], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call fcn.00402790
test eax, eax
jne 0x402a91
mov ecx, ebx
call fcn.00403990
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x4071ec
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40293d
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4071ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x13]
push ecx
mov dword [esp + 0x834], 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
push 0x407368
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, ebx
call fcn.00402e30
test eax, eax
jne 0x40298d
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x834], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x402a91
mov edi, str._main_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str._main_
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x4029e0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402a91
mov al, byte [ecx - 1]
test al, al
je 0x402a87
cmp al, 0xff
je 0x402a87
dec al
mov byte [ecx - 1], al
jmp 0x402a91
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4029ee
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x428]
mov edx, ecx
lea eax, [esp + 0x428]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x407148
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x402a6d
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x402a6d
mov ecx, eax
lea edi, [esp + 0x28]
sub ecx, esi
add esi, 2
sub ecx, 2
xor eax, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402a6d
lea eax, [esp + 0x28]
push 0xc
push eax
mov ecx, ebx
call fcn.00402ab0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402a91
mov al, byte [ecx - 1]
test al, al
je 0x402a87
cmp al, 0xff
je 0x402a87
dec al
mov byte [ecx - 1], al
jmp 0x402a91
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x824
ret