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

Disassembly:
push 0xffffffffffffffff
push 0x5218e8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
add eax, 0x2e8
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x44], 1
mov dword [esp + 0x94], 0
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x499138
call ebx
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x499142
call ebx
push edi
push esi
push ebp
push esi
lea eax, [esp + 0x58]
push eax
push esi
call fcn.0046c270
mov edi, dword [esp + 0x9c]
add edi, 0x309
je 0x499165
lea eax, [edi - 9]
jmp 0x499167
xor eax, eax
mov eax, dword [eax + 0x10]
push eax
mov ecx, esi
call fcn.004a0890
test edi, edi
je 0x49917b
lea eax, [edi - 9]
jmp 0x49917d
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x49918c
lea ebp, [eax - 0x38]
jmp 0x49918e
xor ebp, ebp
test edi, edi
mov dword [esp + 0x3c], ebp
je 0x49919b
lea eax, [edi - 9]
jmp 0x49919d
xor eax, eax
mov eax, dword [eax + 4]
cmp ebp, eax
mov dword [esp + 0x4c], eax
je 0x4993ee
mov ecx, dword [esp + 0xa0]
lea eax, [ecx + 0x14]
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0x1c], ebx
jmp 0x4991c4
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
call fcn.00498880
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4991f8
mov edi, eax
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4991f8
test edi, edi
je 0x4991f8
push edi
call fcn.00429550
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp ebx, 0x14
lea edi, [esi + 0x140]
jbe 0x499209
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xa0]
lea ecx, [eax + 0x14]
cmp eax, ecx
je 0x499238
sub edi, eax
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [edi + eax]
jne 0x499230
add eax, 1
cmp eax, ecx
jne 0x499220
jmp 0x499238
cmp eax, ecx
jne 0x499394
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x94], 1
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x74], edx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 1
mov eax, dword [esi + 0x90]
lea ecx, [eax - 1]
cmp dword [ebp], ecx
jne 0x4992aa
mov ecx, dword [esi + 0x94]
add eax, 0xffffffff
imul ecx
mov ecx, dword [esi + 0x88]
mov esi, dword [esi + 0x8c]
sub ecx, eax
sbb esi, edx
mov dword [esp + 0x30], esi
mov esi, ecx
jmp 0x4992b0
mov esi, dword [esi + 0x94]
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
lea eax, [ecx + esi - 1]
cdq
idiv ecx
lea esi, [esp + 0x60]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.0046ab90
xor ebx, ebx
test edi, edi
jle 0x499362
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + eax], 0
je 0x499352
push ebx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x68]
call fcn.0049fbd0
mov esi, eax
cmp dword [esi], 0
je 0x499306
cmp dword [esi + 4], 0
jne 0x49930c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ebp, dword [esi + 8]
add eax, 4
cmp edi, dword [eax + 8]
jbe 0x499322
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, edi
sar eax, 2
shl eax, 5
add ebp, eax
cmp ebp, dword [ecx]
jb 0x49933b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov edx, 1
shl edx, cl
or dword [eax], edx
add dword [esp + 0x18], 0x28
add ebx, 1
cmp ebx, edi
jl 0x4992dd
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.004a09d0
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x60], 0
je 0x499394
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x40]
test ecx, ecx
lea eax, [ebp + 0x38]
je 0x4993b2
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4993d3
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4993a7
jmp 0x4993d3
mov ecx, dword [eax]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
jne 0x4993cc
lea esp, [esp]
mov eax, ecx
mov ecx, dword [ecx]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
je 0x4993c0
cmp dword [eax + 8], ecx
je 0x4993d3
mov eax, ecx
test eax, eax
je 0x4993dc
add eax, 0xffffffc8
jmp 0x4993de
xor eax, eax
mov ebp, eax
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebp
jne 0x4991c0
mov ecx, dword [esp + 0x9c]
add ecx, 0x31d
je 0x499402
lea eax, [ecx - 9]
jmp 0x499404
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x499413
lea edi, [eax - 0x38]
jmp 0x499415
xor edi, edi
test ecx, ecx
mov dword [esp + 0x3c], edi
je 0x499422
lea eax, [ecx - 9]
jmp 0x499424
xor eax, eax
mov eax, dword [eax + 4]
cmp edi, eax
mov dword [esp + 0x4c], eax
je 0x499676
mov ecx, dword [esp + 0xa0]
lea eax, [ecx + 0x14]
sub eax, ecx
mov dword [esp + 0x28], eax
mov ebx, ecx
jmp 0x499457
mov ebx, dword [esp + 0xa0]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x2c]
call fcn.00498880
mov esi, dword [eax]
mov eax, dword [esp + 0x2c]
xor edx, edx
cmp eax, edx
je 0x49948f
mov ebp, eax
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49948f
cmp ebp, edx
je 0x49948f
push ebp
call fcn.00429550
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [esp + 0x28], 0x14
lea ebp, [esi + 0x140]
jbe 0x4994a4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor edx, edx
lea ecx, [ebx + 0x14]
cmp ebx, ecx
mov eax, ebx
je 0x4994c8
sub ebp, ebx
nop
mov bl, byte [eax]
cmp bl, byte [eax + ebp]
jne 0x4994c0
add eax, 1
cmp eax, ecx
jne 0x4994b0
jmp 0x4994c8
cmp eax, ecx
jne 0x49961c
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov byte [esp + 0x94], 2
mov eax, dword [edi + 0x20]
mov dword [esp + 0x7c], eax
mov ecx, dword [edi]
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 0x10]
mov dword [esp + 0x74], eax
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], ecx
mov eax, dword [esi + 0x90]
lea edx, [eax - 1]
cmp dword [edi], edx
jne 0x499532
mov ecx, dword [esi + 0x94]
add eax, 0xffffffff
imul ecx
mov ecx, dword [esi + 0x88]
mov esi, dword [esi + 0x8c]
sub ecx, eax
sbb esi, edx
mov dword [esp + 0x20], esi
mov esi, ecx
jmp 0x499538
mov esi, dword [esi + 0x94]
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
lea eax, [esi + ecx - 1]
cdq
idiv ecx
lea esi, [esp + 0x60]
mov edi, eax
mov dword [esp + 0x1c], edi
call fcn.0046ab90
xor ebx, ebx
cmp edi, ebx
jle 0x4995ea
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp dword [eax + edx], 0
je 0x4995da
push ebx
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x68]
call fcn.0049fbd0
mov esi, eax
cmp dword [esi], 0
je 0x499592
cmp dword [esi + 4], 0
jne 0x499598
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ebp, dword [esi + 8]
add eax, 4
cmp edi, dword [eax + 8]
jbe 0x4995ae
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
mov eax, dword [esi]
sub edx, edi
sar edx, 2
shl edx, 5
add ebp, edx
cmp ebp, dword [eax]
jb 0x4995c7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x1c]
mov edx, 1
shl edx, cl
or dword [eax], edx
add dword [esp + 0x18], 0x28
add ebx, 1
cmp ebx, edi
jl 0x499565
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.004a09d0
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x60], 0
je 0x49961c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x40]
add eax, 0x38
test ecx, ecx
je 0x49963e
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49965b
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x499633
jmp 0x49965b
mov ecx, dword [eax]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
jne 0x499654
mov eax, ecx
mov ecx, dword [ecx]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
je 0x499648
cmp dword [eax + 8], ecx
je 0x49965b
mov eax, ecx
test eax, eax
je 0x499664
add eax, 0xffffffc8
jmp 0x499666
xor eax, eax
mov edi, eax
cmp edi, dword [esp + 0x4c]
mov dword [esp + 0x3c], edi
jne 0x499450
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0xc