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

Disassembly:
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1002bce8
mov ecx, dword [esi + 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 0x1002bcee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 4]
add esi, dword [esp + 0x18]
mov ebx, dword [esi + 0x18]
cmp ebx, 8
lea edi, [esi + 4]
jb 0x1002bd04
mov ecx, dword [edi]
jmp 0x1002bd06
mov ecx, edi
mov eax, dword [esi + 0x14]
add eax, eax
add ecx, eax
mov dword [esp + 0x1c], ecx
je 0x1002bd33
cmp ebx, 8
jb 0x1002bd1c
mov edx, dword [edi]
jmp 0x1002bd1e
mov edx, edi
cmp edx, ecx
ja 0x1002bd33
cmp ebx, 8
jb 0x1002bd2b
mov edx, dword [edi]
jmp 0x1002bd2d
mov edx, edi
add eax, edx
cmp ecx, eax
jbe 0x1002bd39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x1002bd45
mov ebx, dword [edi]
jmp 0x1002bd47
mov ebx, edi
test ebx, ebx
je 0x1002bd6b
cmp ecx, 8
jb 0x1002bd54
mov eax, dword [edi]
jmp 0x1002bd56
mov eax, edi
cmp eax, ebx
ja 0x1002bd6b
cmp ecx, 8
jb 0x1002bd61
mov edi, dword [edi]
mov edx, dword [esi + 0x14]
lea eax, [edi + edx*2]
cmp ebx, eax
jbe 0x1002bd71
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x1002bd81
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push esi
push ebx
push esi
push edi
lea eax, [esp + 0x40]
inc eax
push eax
push edx
mov ecx, eax
call fcn.10058d6b
mov edx, dword [esp + 0x30]
and al, 0x30
and al, 0x30
test edx, edx
mov esi, dword [esp + 0x34]
je 0x1002bdc7
mov ecx, dword [esp + 0x38]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x1002bdc7
mov word [esi], 0
add esi, 2
mov dword [esp + 0x34], esi
jmp 0x1002bdea
cmp edx, esi
jbe 0x1002bdd1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
call fcn.1005818a
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.1002dbd2
xor ebx, ebx
cmp esi, eax
jb 0x1002bcc0
mov esi, dword [esp + 0x30]
cmp esi, ebx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], ebx
je 0x1002be3c
mov ecx, dword [esp + 0x38]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 1
sar ecx, 1
cmp eax, ecx
jae 0x1002be3c
mov eax, edx
add eax, 2
mov word [edx], bx
mov dword [esp + 0x34], eax
jmp 0x1002be65
cmp esi, edx
mov edi, edx
jbe 0x1002be48
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
call fcn.10058201
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x1002be73
sub eax, ecx
sar eax, 1
jne 0x1002be7d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x54], ecx
je 0x1002be93
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 1
jne 0x1002be9d
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], ebx
je 0x1002bebf
cmp dword [eax + 0x18], 8
jb 0x1002beb8
mov edx, dword [eax + 4]
mov dword [esp + 0x66], edx
jmp 0x1002bebf
add eax, 4
mov dword [esp + 0x66], eax
lea eax, [esp + 0x4c]
push eax
mov word [esp + 0x60], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1002bf30
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1002beea
push eax
call 0x10077e77
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1002bf0f
push eax
call 0x10077e9c
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
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
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1002bf46
push eax
call 0x10077ed3
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1002bf6b
push eax
call 0x10077ef8
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
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