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

Disassembly:
push 0xffffffffffffffff
push 0x51c9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x74]
xor esi, esi
cmp byte [ebp + 0x18], 0
jne 0x4fa3a1
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x4fa3a1
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4fa3a1
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
call fcn.0044dd80
add esp, 8
cmp eax, 0xbb8
mov dword [esp + 0x20], eax
jle 0x4f9e12
mov dword [esp + 0x20], 0xbb8
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x6c], esi
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x4f9e30
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, ebp
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x4f9e40
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x4f9e48
cmp ebx, ebp
je 0x4f9e4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x4f9f88
test ebx, ebx
jne 0x4f9e60
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 8]
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x4f9e6d
call edi
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test al, al
je 0x4f9f3e
cmp esi, dword [ebx + 8]
jb 0x4f9e8c
call edi
cmp esi, dword [ebx + 8]
jb 0x4f9e8c
call edi
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x18], 0
add dword [ebp + 0x10], eax
lea ebp, [esi + 0x14]
cmp esi, dword [ebx + 8]
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x4f9ead
call edi
cmp dword [ebp], 0
je 0x4f9eed
cmp esi, dword [ebx + 8]
jb 0x4f9eba
call edi
cmp esi, dword [ebx + 8]
mov edi, dword [ebp]
jb 0x4f9ec8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x10]
or ecx, dword [edi + 0x14]
je 0x4f9eda
mov eax, dword [esi + 8]
cdq
add dword [edi + 8], eax
adc dword [edi + 0xc], edx
mov eax, dword [esp + 0x18]
add eax, 1
add ebp, 4
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x4f9ea0
mov edx, dword [esp + 0x74]
mov ebp, dword [edx + 8]
lea edi, [esi + 0x28]
cmp edi, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
je 0x4f9f16
mov ebx, esi
sub ebx, edi
lea esi, [ebx + edi]
call fcn.004faa70
add edi, 0x28
cmp edi, ebp
jne 0x4f9f07
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov edi, dword [ebp + 8]
push eax
lea eax, [edi - 0x28]
call fcn.0048e9e0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esp, 4
add dword [ebp + 8], 0xffffffd8
jmp 0x4f9e32
xor ebp, ebp
lea edi, [esi + 0x14]
cmp esi, dword [ebx + 8]
jb 0x4f9f4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi], 0
je 0x4f9f71
cmp esi, dword [ebx + 8]
jb 0x4f9f5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi]
add ebp, 1
add edi, 4
cmp ebp, 5
mov dword [ecx], 0
jl 0x4f9f43
cmp esi, dword [ebx + 8]
jb 0x4f9f7c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x74]
add esi, 0x28
jmp 0x4f9e32
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x4f9f96
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
mov dword [esp + 0x30], esi
jbe 0x4f9fa8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x4fa083
lea edx, [ebx + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
cmp ebx, dword [ebp + 8]
jb 0x4f9fca
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x4fa06c
cmp ebx, dword [ebp + 8]
jb 0x4f9fe2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp dword [esi], 0
mov dword [esp + 0x28], esi
jne 0x4fa043
mov edi, dword [esp + 0x54]
test edi, edi
mov edx, dword [esp + 0x58]
je 0x4fa018
mov ecx, dword [esp + 0x5c]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x4fa018
mov dword [edx], esi
add edx, 4
mov dword [esp + 0x58], edx
jmp 0x4fa043
cmp edi, edx
mov dword [esp + 0x24], edx
jbe 0x4fa026
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
push ecx
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
call fcn.004d9f60
cmp ebx, dword [ebp + 8]
jb 0x4fa04e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
add dword [esi], ecx
add dword [esp + 0x18], 4
add eax, 1
cmp eax, 5
mov dword [esp + 0x1c], eax
jl 0x4f9fbf
cmp ebx, dword [ebp + 8]
jb 0x4fa077
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x30]
add ebx, 0x28
jmp 0x4f9fa8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
mov esi, eax
jbe 0x4fa099
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
cmp eax, ebx
jbe 0x4fa0a7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
jmp 0x4fa0b0
cmp esi, ebx
je 0x4fa0da
cmp esi, dword [esp + 0x58]
jb 0x4fa0c0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
push edi
push edx
call fcn.004e0420
cmp esi, dword [esp + 0x58]
jb 0x4fa0d5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 4
jmp 0x4fa0b0
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x6c], 1
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x4fa0fb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x74]
mov edi, ebx
mov ebp, esi
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x4fa111
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
je 0x4fa119
cmp edi, ebx
je 0x4fa11f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x4fa24e
test edi, edi
jne 0x4fa131
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 8]
jb 0x4fa13c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, ebp
call fcn.00513670
cmp ebp, dword [edi + 8]
mov esi, eax
jb 0x4fa15b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 8]
jb 0x4fa15b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x4fa19b
cmp ebp, dword [edi + 8]
jb 0x4fa16e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x10], 0
jg 0x4fa185
cmp ebp, dword [edi + 8]
jb 0x4fa17f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 8], 0
jg 0x4fa19b
cmp ebp, dword [edi + 8]
jb 0x4fa190
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 0x28
sub dword [ebx + 0x10], esi
jmp 0x4fa103
cmp ebp, dword [edi + 8]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jb 0x4fa1af
call ebx
cmp ebp, dword [edi + 8]
jb 0x4fa1af
call ebx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
add esi, ecx
cmp ebp, dword [edi + 8]
mov dword [esp + 0x30], esi
jb 0x4fa1c2
call ebx
push ebp
lea esi, [esp + 0x44]
call fcn.004fa3e0
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 8]
mov dword [esp + 0x28], edi
lea edi, [ebp + 0x28]
cmp edi, ebx
mov dword [esp + 0x2c], ebp
je 0x4fa1f3
sub ebp, edi
lea esi, [edi + ebp]
call fcn.004faa70
add edi, 0x28
cmp edi, ebx
jne 0x4fa1e4
mov eax, dword [esp + 0x74]
mov edi, dword [eax + 8]
lea esi, [edi - 0x28]
cmp esi, edi
je 0x4fa230
mov eax, dword [esi]
test eax, eax
je 0x4fa229
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa229
test eax, eax
je 0x4fa229
add eax, 0xfffffffc
je 0x4fa229
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 1
call eax
add esi, 0x28
cmp esi, edi
jne 0x4fa201
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x30]
add dword [eax + 8], 0xffffffd8
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ebx, eax
sub dword [ebx + 0x10], esi
jmp 0x4fa103
mov esi, dword [esp + 0x44]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
cmp esi, ebx
je 0x4fa339
mov edx, ecx
sub edx, esi
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4fa339
cmp esi, ecx
mov edi, ecx
jbe 0x4fa291
call ebp
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x40]
mov ebx, eax
lea eax, [edi - 0x28]
cmp eax, ecx
mov dword [esp + 0x3c], edi
ja 0x4fa2a6
cmp eax, esi
jae 0x4fa2a8
call ebp
lea esi, [edi - 0x28]
cmp esi, dword [ebx + 8]
jb 0x4fa2b2
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x14]
push eax
call edx
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4fa258
mov ecx, dword [esp + 0x48]
mov edx, ecx
sub edx, esi
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4fa25c
lea edi, [ecx - 0x28]
cmp edi, ecx
mov ebx, ecx
je 0x4fa32d
mov eax, dword [edi]
test eax, eax
je 0x4fa31e
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa31e
test eax, eax
je 0x4fa31e
add eax, 0xfffffffc
je 0x4fa31e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 1
call eax
add edi, 0x28
cmp edi, ebx
jne 0x4fa2f6
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
sub ecx, 0x28
mov dword [esp + 0x48], ecx
jmp 0x4fa25c
cmp esi, ebx
mov byte [esp + 0x6c], 0
je 0x4fa384
cmp esi, ecx
mov edi, ecx
je 0x4fa37b
mov eax, dword [esi]
cmp eax, ebx
je 0x4fa370
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa370
cmp eax, ebx
je 0x4fa370
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x4fa370
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
add esi, 0x28
cmp esi, edi
jne 0x4fa348
mov esi, dword [esp + 0x44]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x4fa3a1
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4