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

Disassembly:
push 0xffffffffffffffff
push 0x100ad2ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x1ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1fc]
mov esi, dword [ebp + 0x70]
xor ebx, ebx
cmp esi, ebx
mov edi, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
je 0x10031791
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov dword [esp + 0x1f4], ebx
mov ebp, dword [ebp + 0x74]
cmp ebp, ebx
mov dword [esp + 0x30], ebp
je 0x100317ac
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
cmp esi, ebx
mov byte [esp + 0x1f4], 1
je 0x10031d27
cmp ebp, ebx
je 0x10031d27
xor ebp, ebp
mov eax, edi
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], ebp
call fcn.10054db0
test eax, eax
jbe 0x10031c8a
mov edi, edi
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x100317f3
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x100317f9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
add ebp, ebp
add ebp, ebp
add eax, ebp
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov byte [esp + 0x1f4], 3
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x1003187d
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
lea edx, [esp + 0x38]
push edx
call eax
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1fc], 4
call fcn.10002570
mov edi, 8
cmp dword [esp + 0x50], edi
jb 0x10031877
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x18]
jmp 0x10031882
mov edi, 8
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x24]
mov byte [esp + 0x1f4], 5
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x10031914
mov edx, dword [eax]
mov edx, dword [edx + 0x7c]
lea ecx, [esi + 0xd8]
push ecx
movzx ecx, byte [esi + 0x120]
push ecx
push ebx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x1f4], 6
mov esi, dword [eax]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x100318f1
cmp esi, ebx
je 0x100318de
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100318eb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1f4], 5
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x1003190c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x10031944
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x6c], edi
mov byte [esp + 0x17], bl
jb 0x1003192f
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x6c], 7
mov byte [esp + 0x1f4], 1
jmp 0x10031c54
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
mov byte [esp + 0x1f4], 7
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x100319a6
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x38]
push eax
call edx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x1fc], 8
call fcn.10002570
mov byte [esp + 0x1f4], 7
cmp dword [esp + 0x50], edi
jb 0x100319a6
mov eax, dword [esp + 0x3c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x54]
call fcn.100882c0
test al, al
je 0x100319f9
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x100319f9
mov edx, dword [ecx]
mov edx, dword [edx + 0xf4]
lea eax, [esp + 0x38]
push eax
call edx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x1fc], 9
call fcn.10002570
mov byte [esp + 0x1f4], 7
cmp dword [esp + 0x50], edi
jb 0x100319f9
mov eax, dword [esp + 0x3c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x10031a35
cmp dword [esp + 0x6c], 8
mov ecx, dword [esp + 0x58]
jae 0x10031a13
lea ecx, [esp + 0x58]
mov edi, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x74]
call fcn.10017910
test eax, eax
je 0x10031a35
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x70]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x60]
cmp ecx, ebx
je 0x10031be7
cmp dword [esp + 0x18], ebx
jne 0x10031cb9
lea eax, [esp + 0x8c]
call fcn.10017fc0
xor ecx, ecx
mov dword [esp + 0x1cc], ecx
mov dword [esp + 0x1d0], ebx
mov dword [esp + 0x1d4], ebx
mov dword [esp + 0x1d8], ebx
mov dword [esp + 0x1dc], ebx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1f4], 0xa
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x10031aa0
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x20], eax
jb 0x10031aad
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov edx, dword [eax + ebp]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x1a4], edx
mov esi, eax
je 0x10031aed
cmp eax, ebx
je 0x10031adb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x1cc]
cmp ecx, ebx
je 0x10031ae6
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1cc], esi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x28]
mov ecx, dword [esp + 0x1d0]
cmp ecx, esi
je 0x10031b24
cmp esi, ebx
je 0x10031b12
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x1d0]
cmp ecx, ebx
je 0x10031b1d
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1d0], esi
mov esi, dword [edi + 0x2c]
mov ecx, dword [esp + 0x1dc]
cmp ecx, esi
je 0x10031b57
cmp esi, ebx
je 0x10031b45
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x1dc]
cmp ecx, ebx
je 0x10031b50
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1dc], esi
mov ecx, dword [edi + 0x28]
cmp ecx, ebx
je 0x10031b6c
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
mov dword [esp + 0xb0], eax
mov ecx, dword [edi + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
push 1
lea eax, [esp + 0x90]
push eax
call edx
test al, al
mov byte [esp + 0x1f4], 7
jne 0x10031bda
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x1b], bl
call fcn.1001d7d0
lea ecx, [esp + 0x70]
call fcn.10002160
mov byte [esp + 0x1f4], 3
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10031bc0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
call fcn.10002160
mov byte [esp + 0x1f4], 1
mov ecx, dword [esp + 0x18]
jmp 0x10031c5d
lea ecx, [esp + 0x8c]
push ecx
call fcn.1001d7d0
mov edi, 8
cmp dword [esp + 0x88], edi
jb 0x10031c02
mov eax, dword [esp + 0x74]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x1f4], 3
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov esi, 7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
je 0x10031c31
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], edi
jb 0x10031c44
mov ecx, dword [esp + 0x58]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x1f4], 1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], esi
mov word [esp + 0x58], bx
mov dword [esp + 0x68], ebx
cmp ecx, ebx
je 0x10031c68
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
add ebp, 1
mov eax, edi
mov dword [esp + 0x20], ebp
call fcn.10054db0
cmp ebp, eax
mov esi, dword [esp + 0x2c]
jb 0x100317e0
mov byte [esp + 0x1f4], bl
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1f4], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov al, byte [esp + 0x17]
jmp 0x10031d56
mov edx, dword [ecx]
mov edx, dword [edx + 0x84]
push ebx
push ebx
push 1
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
call edx
test al, al
jne 0x10031be7
lea ecx, [esp + 0x70]
mov byte [esp + 0x17], bl
call fcn.10002160
mov byte [esp + 0x1f4], 3
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10031cfe
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea ecx, [esp + 0x54]
call fcn.10002160
mov byte [esp + 0x1f4], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10031c68
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x10031c68
cmp ebp, ebx
mov byte [esp + 0x1f4], bl
je 0x10031d3c
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
cmp esi, ebx
mov dword [esp + 0x1f4], 0xffffffff
je 0x10031d54
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.100a4489
add esp, 0x1e4
ret 4