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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10040b50
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1002c098
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002c098
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x1002c098
xor eax, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x68], ax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea eax, [ecx + ecx + 4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], ebx
call fcn.1002d2a0
cmp dword [esi + 0x18], 8
mov ebx, dword [esi + 0x14]
jb 0x1002bdb9
mov esi, dword [esi + 4]
jmp 0x1002bdbc
add esi, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1002bdce
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 1
jne 0x1002bdd8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x40]
lea edx, [ebx + ebx]
push edx
push esi
push eax
call sub.MSVCR80.dll_memcpy
xor esi, esi
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov ecx, edi
mov byte [esp + 0x78], 1
mov dword [esp + 0x14], ebx
call fcn.1000aa50
test eax, eax
jbe 0x1002bf70
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
jmp 0x1002be23
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x1002be48
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x1002be4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 4]
add esi, dword [esp + 0x18]
mov ebx, dword [esi + 0x18]
cmp ebx, 8
lea edi, [esi + 4]
jb 0x1002be64
mov ecx, dword [edi]
jmp 0x1002be66
mov ecx, edi
mov eax, dword [esi + 0x14]
add eax, eax
add ecx, eax
mov dword [esp + 0x1c], ecx
je 0x1002be93
cmp ebx, 8
jb 0x1002be7c
mov edx, dword [edi]
jmp 0x1002be7e
mov edx, edi
cmp edx, ecx
ja 0x1002be93
cmp ebx, 8
jb 0x1002be8b
mov edx, dword [edi]
jmp 0x1002be8d
mov edx, edi
add eax, edx
cmp ecx, eax
jbe 0x1002be99
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x1002bea5
mov ebx, dword [edi]
jmp 0x1002bea7
mov ebx, edi
test ebx, ebx
je 0x1002becb
cmp ecx, 8
jb 0x1002beb4
mov eax, dword [edi]
jmp 0x1002beb6
mov eax, edi
cmp eax, ebx
ja 0x1002becb
cmp ecx, 8
jb 0x1002bec1
mov edi, dword [edi]
mov eax, dword [esi + 0x14]
lea ecx, [edi + eax*2]
cmp ebx, ecx
jbe 0x1002bed1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x1002bee1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x1c]
push edx
push esi
push ebx
push esi
push edi
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
call fcn.1002e3a0
mov edx, dword [esp + 0x30]
test edx, edx
mov esi, dword [esp + 0x34]
je 0x1002bf29
mov ecx, dword [esp + 0x38]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x1002bf29
mov word [esi], 0
add esi, 2
mov dword [esp + 0x34], esi
jmp 0x1002bf48
cmp edx, esi
jbe 0x1002bf33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.1002d580
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
add dword [esp + 0x18], 0x1c
add esi, 1
mov dword [esp + 0x14], esi
call fcn.1000aa50
cmp esi, eax
jb 0x1002be20
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x20], edi
je 0x1002bf98
mov eax, ebx
sub eax, ecx
sub esi, ecx
sar eax, 1
sar esi, 1
cmp eax, esi
jae 0x1002bf98
lea eax, [ebx + 2]
mov word [ebx], di
mov dword [esp + 0x34], eax
jmp 0x1002bfbf
cmp ecx, ebx
jbe 0x1002bfa2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
call fcn.1002d580
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp ecx, edi
je 0x1002bfcd
sub eax, ecx
sar eax, 1
jne 0x1002bfd7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x54], ecx
je 0x1002bfed
mov edx, dword [esp + 0x44]
sub edx, eax
sar edx, 1
jne 0x1002bff7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], edi
je 0x1002c015
cmp dword [eax + 0x18], 8
jb 0x1002c00e
mov eax, dword [eax + 4]
jmp 0x1002c011
add eax, 4
mov dword [esp + 0x66], eax
lea ecx, [esp + 0x4c]
push ecx
mov word [esp + 0x60], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov eax, dword [esp + 0x30]
jne 0x1002c06e
cmp eax, edi
je 0x1002c03c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x1002c059
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, edi
je 0x1002c07b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
je 0x1002c098
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret