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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x40]
lea eax, [edi + ebx]
cmp eax, 2
je 0x100947bd
jmp 0x100946c9
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
cmp edi, ebx
mov esi, dword [esp + 0x48]
jg 0x100946e0
mov ecx, esi
call fcn.10093c90
cmp edi, eax
jle 0x100947ed
mov ecx, esi
call fcn.10093c90
cmp ebx, eax
jle 0x1009485e
cmp ebx, edi
push 0
jge 0x1009472c
mov ecx, dword [esp + 0x38]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov edi, eax
push edx
sar edi, 1
lea eax, [ecx + edi*4]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
push eax
push ebp
call fcn.10093aa0
mov ebx, eax
mov eax, dword [esp + 0x24]
mov esi, ebx
sub esi, ebp
add esp, 0x14
sar esi, 2
jmp 0x1009475a
mov ecx, dword [esp + 0x50]
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov esi, eax
push ecx
sar esi, 1
lea ebx, [ebp + esi*4]
push ebx
push ebp
push edx
call fcn.10093b00
mov edi, eax
sub edi, dword [esp + 0x48]
add esp, 0x14
mov dword [esp + 0x10], eax
sar edi, 2
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push edx
push esi
sub ecx, edi
push ecx
push ebx
push ebp
push eax
mov dword [esp + 0x58], ecx
call fcn.10094150
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push esi
push edi
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
call fcn.100946a0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x48]
sub eax, esi
mov dword [esp + 0x74], ecx
add ecx, eax
add esp, 0x34
cmp ecx, 2
mov dword [esp + 0x44], eax
mov ebp, ebx
mov dword [esp + 0x34], edx
jne 0x100946c1
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp]
mov edi, dword [ecx]
push eax
mov eax, dword [edi + 0x2c]
push edx
call eax
test eax, eax
jge 0x100948d1
mov ecx, dword [ebp]
mov eax, dword [esi]
mov dword [esi], ecx
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
mov ebx, dword [esp + 0x34]
mov dword [eax + 4], edx
sub esp, 0x18
mov eax, esp
xor edi, edi
mov dword [esp + 0x5c], esp
push ebp
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x34]
push ebx
push edx
mov dword [eax + 0x14], ecx
call fcn.100940b0
mov eax, dword [esp + 0x40]
add esp, 0x24
cmp eax, edi
je 0x10094838
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esi + 0x14]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ebx
push ecx
push ebp
push edx
push eax
call fcn.100944c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
sub esp, 0x18
mov eax, esp
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov edx, dword [esi + 0x14]
mov dword [esp + 0x5c], esp
push ebx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.100940b0
mov eax, dword [esp + 0x40]
add esp, 0x24
cmp eax, edi
je 0x100948a9
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x4c]
mov esi, dword [esi + 0x14]
mov eax, dword [esi + 4]
mov byte [esp + 0x44], 0
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x3c]
push ebx
push eax
push ecx
push ebp
push edx
call fcn.10093e00
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret