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

Disassembly:
push 0xffffffffffffffff
push 0x100afa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x11c], ebx
cmp dword [esp + 0x124], ebx
je 0x10045e13
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea esi, [edi + 0x2c]
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x100458f7
mov eax, dword [esi]
cmp eax, ebx
je 0x100458f7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x11c], 2
xor ebp, ebp
mov ecx, dword [edi + 0x1c]
cmp ecx, ebx
je 0x10045a5c
mov eax, dword [edi + 0x20]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x10045a5c
cmp ecx, ebx
je 0x1004592c
mov eax, dword [edi + 0x20]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x10045932
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x1c]
mov esi, dword [eax + ebp*4]
cmp esi, ebx
je 0x10045a50
mov eax, 0xf
mov dword [esp + 0x84], ebx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x20]
push ecx
lea ecx, [esp + 0xb0]
mov byte [esp + 0x128], 3
call fcn.100021d0
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x3c]
push edx
lea ecx, [esp + 0xcc]
call fcn.100021d0
push 0xffffffffffffffff
push ebx
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x94]
call fcn.100021d0
mov ecx, dword [esi + 0x78]
mov dword [esp + 0xfc], ecx
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x100], edx
mov eax, dword [esi + 0x80]
mov dword [esp + 0x104], eax
mov ecx, dword [esi + 0x84]
lea edx, [esp + 0x84]
push edx
lea esi, [esp + 0x68]
mov dword [esp + 0x10c], ecx
call fcn.10046090
lea esi, [esp + 0x84]
mov byte [esp + 0x11c], 2
call fcn.10044a70
mov esi, dword [esp + 0x14]
add ebp, 1
jmp 0x10045901
cmp esi, ebx
je 0x10045a6d
mov eax, dword [esi]
cmp eax, ebx
je 0x10045a6d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x11c], 4
lea esi, [esp + 0x2c]
lea edi, [esp + 0x3c]
mov word [esp + 0x3c], bx
mov dword [esp + 0x40], ebx
call fcn.10097730
mov eax, dword [esp + 0x124]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x11c], 7
xor ebp, ebp
mov dword [esp + 0x14], ebx
lea ebx, [ebx]
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x10045c32
mov ecx, dword [esp + 0x6c]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x10045c32
mov edx, dword [esp + 0x14]
lea edi, [edx + esi]
lea eax, [esp + 0x2c]
mov ecx, edi
call fcn.100977a0
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x10045b40
mov ecx, dword [esp + 0x6c]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x10045b4a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
add eax, esi
push eax
lea esi, [esp + 0x58]
call fcn.10046090
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x10045c22
mov eax, dword [esp + 0x34]
sub eax, ecx
cmp eax, dword [esp + 0x28]
jbe 0x10045c22
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x10045ba1
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
je 0x10045ba1
lea ebx, [eax - 1]
call fcn.100475c0
lea ebx, [esp + 0x54]
lea esi, [esp + 0x44]
call fcn.10046200
mov esi, ebx
call fcn.10046140
push edi
call fcn.10046090
lea eax, [esp + 0x2c]
call fcn.10046180
push 0x429
lea eax, [esp + 0x30]
call fcn.100a3290
mov esi, dword [esp + 0x44]
add esp, 4
cmp esi, 0xffff
lea eax, [esp + 0x2c]
jb 0x10045bfe
push 0xffff
call fcn.100a3290
add esp, 4
push esi
lea eax, [esp + 0x30]
call fcn.100a3380
jmp 0x10045c04
push esi
call fcn.100a3290
add esp, 4
push 0
lea eax, [esp + 0x30]
call fcn.100a3380
add esp, 4
lea eax, [esp + 0x2c]
mov ecx, edi
call fcn.100977a0
xor ebx, ebx
add ebp, 1
add dword [esp + 0x14], 0x88
jmp 0x10045ae0
xor esi, esi
xor ebp, ebp
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
mov dword [esp + 0x14], esi
je 0x10045d0c
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 4
cmp esi, eax
jae 0x10045d0c
lea eax, [ecx + ebp]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x11c], 8
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
mov word [esp + 0x40], bx
mov dword [esp + 0x44], ebx
call fcn.10097860
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10045c95
mov ecx, dword [esp + 0x34]
sub ecx, eax
jne 0x10045ca8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10045cf5
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10045cf5
mov edi, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
add edi, 0x34
cmp ecx, ebx
jne 0x10045cbe
xor esi, esi
jmp 0x10045cca
mov eax, dword [esp + 0x20]
sub eax, ecx
cmp eax, ebx
mov esi, eax
ja 0x10045cd4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
push esi
push ecx
mov ecx, edi
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10045cf1
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
add ebp, 0x10
jmp 0x10045c36
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x10045e6f
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10045e6f
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x54]
mov byte [esp + 0x11c], 9
push edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
mov word [esp + 0x40], bx
mov dword [esp + 0x44], ebx
call fcn.10097860
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10045d78
mov ecx, dword [esp + 0x34]
sub ecx, eax
jne 0x10045e1a
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10045d89
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x54]
call fcn.100464d0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x10045dc4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
push edx
push ecx
call fcn.10047cd0
mov edx, dword [esp + 0x50]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x10045de1
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ebx, [esp + 0x64]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.100464d0
mov dword [esp + 0x11c], 0xffffffff
mov ecx, dword [esp + 0x124]
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + 4]
add ecx, 0x30
call edx
xor al, al
jmp 0x10045eef
mov edi, dword [esp + 0x124]
mov ecx, dword [esp + 0x1c]
add edi, 0x34
cmp ecx, ebx
jne 0x10045e30
xor esi, esi
jmp 0x10045e3c
mov eax, dword [esp + 0x20]
sub eax, ecx
cmp eax, ebx
mov esi, eax
ja 0x10045e46
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
push esi
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10045e63
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x54]
call fcn.100464d0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x10045e9e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.10047cd0
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x10045ebb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ebx, [esp + 0x64]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.100464d0
mov dword [esp + 0x11c], 0xffffffff
mov ecx, dword [esp + 0x124]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 4]
add ecx, 0x30
call eax
mov al, 1
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.100a4489
add esp, 0x10c
ret 4