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

Disassembly:
push 0xffffffffffffffff
push 0x100af760
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov esi, dword [ecx + 0x64]
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x10050654
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x64], 3
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x100507f2
mov eax, dword [esp + 0x78]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x100507f2
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x20]
cmp esi, ebx
je 0x1005079c
cmp edi, eax
jb 0x100506a6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + edi*4]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push ecx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call edx
mov byte [esp + 0x64], 4
mov esi, dword [eax]
cmp ebp, esi
je 0x100506e7
cmp esi, ebx
je 0x100506d3
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp ebp, ebx
je 0x100506e1
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov ebp, esi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x64], 3
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x100506fb
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp ebp, ebx
je 0x10050746
mov eax, dword [ebp]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call edx
push eax
lea esi, [esp + 0x34]
mov byte [esp + 0x68], 5
call fcn.10016580
mov byte [esp + 0x64], 3
cmp dword [esp + 0x58], 8
jb 0x100507e6
mov eax, dword [esp + 0x44]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x24]
add esp, 4
add edi, 1
jmp 0x10050670
push ebx
push 0x100b6894
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.10002660
mov ecx, esi
push ecx
lea esi, [esp + 0x34]
mov byte [esp + 0x68], 6
call fcn.10016580
mov byte [esp + 0x64], 3
cmp dword [esp + 0x58], 8
jb 0x100507e6
mov edx, dword [esp + 0x44]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x24]
add esp, 4
add edi, 1
jmp 0x10050670
push ebx
push 0x100b6894
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.10002660
mov eax, esi
push eax
lea esi, [esp + 0x34]
mov byte [esp + 0x68], 7
call fcn.10016580
mov byte [esp + 0x64], 3
cmp dword [esp + 0x58], 8
jb 0x100507e6
mov ecx, dword [esp + 0x44]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x20]
add edi, 1
jmp 0x10050670
cmp esi, ebx
je 0x100508b4
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea ebx, [esp + 0x8c]
mov edi, esp
mov dword [esp + 0x9c], esp
call fcn.10054fd0
mov edx, dword [esi]
mov eax, dword [esp + 0x88]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
xor ebx, ebx
cmp al, bl
je 0x100508b2
cmp ebp, ebx
mov byte [esp + 0x64], 2
je 0x1005085e
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10050884
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x38]
push ecx
call fcn.10017a80
mov edx, dword [esp + 0x38]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov byte [esp + 0x64], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x100508ae
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x1005091d
xor ebx, ebx
cmp ebp, ebx
mov byte [esp + 0x64], 2
je 0x100508c7
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x100508ed
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x38]
push ecx
call fcn.10017a80
mov edx, dword [esp + 0x38]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp esi, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x64], bl
je 0x1005090a
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x1005091b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x1c