Function at 0x40cc20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c37cf
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4f840c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4f840c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push 7
mov dword [esp + 0x1c], eax
pop eax
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], cx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
mov byte [esp + 0xa0], 1
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
mov dword [esp + 0x10], esi
test eax, eax
je 0x40cf1f
mov dword [esp + 0x14], esi
jmp 0x40ccc0
xor esi, esi
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add eax, ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00408b5a
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
mov esi, 0x4e0d2c
push esi
call edi
pop ecx
push eax
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0040d92d
cmp eax, 0xffffffff
je 0x40ceff
push esi
call edi
pop ecx
push eax
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0040d92d
push eax
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x64]
call fcn.004089b5
mov ebx, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xa0], 2
call fcn.004089fe
push 1
xor edi, edi
lea esi, [esp + 0x5c]
mov byte [esp + 0xa4], 1
call fcn.00408e84
mov esi, 0x4e0d2c
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0040d92d
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x64]
call fcn.004089b5
mov ebx, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 3
call fcn.004089fe
push 1
lea esi, [esp + 0x5c]
mov byte [esp + 0xa4], 1
call fcn.00408e84
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40cd9f
lea eax, [esp + 0x3c]
push 0x4e1098
push eax
call sub.MSVCR100.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x40ce0f
mov eax, dword [esp + 0x18]
add eax, 8
cmp dword [eax + 0x14], 0x10
jb 0x40cdbf
mov eax, dword [eax]
push eax
lea eax, [esp + 0x78]
push eax
call sym.Uninstall.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_KpBase::s2ws_char_const__
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
mov byte [esp + 0xb0], 4
call fcn.00409091
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 5
call fcn.004089fe
push 1
xor edi, edi
lea esi, [esp + 0x5c]
call fcn.00408e84
lea esi, [esp + 0x74]
jmp 0x40ce9c
mov esi, 0x4e1058
cmp dword [str.CSIDL_PERSONAL], edi
je 0x40cead
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40ce2f
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call sub.MSVCR100.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x40ce46
add esi, 8
cmp dword [esi], edi
jne 0x40ce20
jmp 0x40cead
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40cead
lea eax, [esp + 0x58]
push esi
push eax
call sym.Uninstall.exe_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_KpBase::GetSystemPathW_unsigned_long_int_
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
mov byte [esp + 0xb0], 6
call fcn.00409091
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 7
call fcn.004089fe
push 1
xor edi, edi
lea esi, [esp + 0x78]
call fcn.00408e84
lea esi, [esp + 0x58]
push 1
xor edi, edi
mov byte [esp + 0xa4], 1
call fcn.00408e84
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x40cebc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
call sym.Uninstall.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KpBase::ws2s_wchar_t_const__
pop ecx
pop ecx
mov byte [esp + 0xa0], 8
cmp dword [eax + 0x14], 0x10
jb 0x40ced9
mov eax, dword [eax]
push 0
push dword [esp + 0x1c]
mov ecx, eax
call fcn.0040b6ea
push 0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 1
call fcn.0040d8cd
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
inc dword [esp + 0x10]
add dword [esp + 0x14], 0x1c
cmp dword [esp + 0x10], eax
jb 0x40ccbe
push 1
xor edi, edi
lea esi, [esp + 0x24]
call fcn.00408e84
push 1
lea esi, [esp + 0x40]
call fcn.00408e84
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00485d44
mov esp, ebp
pop ebp
ret 4