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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
test eax, eax
jge 0x4fbbbd
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push esi
call fcn.004fbb60
mov ecx, dword [esi + 0x5e4]
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4fbbbd
lea eax, [ecx - 1]
mov dword [esp + 0x34], eax
mov edx, dword [esi + 0x138]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esi + 0x588c]
imul ecx, ecx, 0x84
cmp dword [ecx + edx + 0x6c], edi
je 0x4fbbe0
mov edi, 1
cmp dword [esi + 0x1c], 0
je 0x4fbe72
cmp dword [esi + 0x744], 0
jne 0x4fbbfb
test edi, edi
je 0x4fbe72
xor edx, edx
cmp edx, dword [esi + 0x70c]
jge 0x4fbd38
mov eax, dword [esi + 0x704]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x4fbc67
cmp dword [eax + 0x88], 0
je 0x4fbc67
mov ecx, dword [eax + 0x8c]
test ecx, 0x800
je 0x4fbc67
test ecx, 0x1000
je 0x4fbc47
test dword [esi + 0xa17c], 0x200
je 0x4fbc67
mov ecx, dword [eax + 0x14]
cmp edi, ecx
jl 0x4fbc67
mov ebp, dword [eax + 0x24]
add ebp, ecx
cmp edi, ebp
jge 0x4fbc67
mov ecx, dword [eax + 0x18]
cmp ebx, ecx
jl 0x4fbc67
mov ebp, dword [eax + 0x28]
add ebp, ecx
cmp ebx, ebp
jl 0x4fbc77
add edx, 1
add eax, 0xb4
cmp edx, dword [esi + 0x70c]
jl 0x4fbc17
cmp edx, dword [esi + 0x70c]
jge 0x4fbd38
mov eax, dword [esi + 0x704]
imul edx, edx, 0xb4
mov ecx, dword [eax + edx + 0x88]
mov edx, dword [esi + 0x72c]
imul ecx, ecx, 0x98
mov ebp, dword [ecx + edx + 0x48]
cmp ebp, dword [esi + 0x343c]
jge 0x4fbd38
mov ecx, dword [esi + 0x3434]
mov eax, ebp
imul eax, eax, 0x170
add eax, ecx
test byte [eax + 0x134], 0x80
je 0x4fbd38
cmp dword [eax + 0xc0], 0
je 0x4fbd38
mov ebx, dword [esp + 0x34]
push ebx
push esi
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebx*4]
xor edi, edi
add esp, 8
cmp dword [ecx + 0xc], edi
jle 0x4fbd0b
movzx edx, word [eax + edi*2]
cmp edx, ebp
je 0x4fbd0b
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
add edi, 1
cmp edi, dword [edx + 0xc]
jl 0x4fbcf2
push ebx
push esi
call fcn.004ad1d0
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
add esp, 8
cmp edi, dword [ecx + 0xc]
jge 0x4fbd38
push 0
push ebx
push edi
push esi
call fcn.004fa200
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor edi, edi
cmp dword [esi + 0x70c], edi
mov dword [esp + 0x28], edi
jle 0x4fbdbd
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
lea esp, [esp]
mov edx, dword [esi + 0x704]
cmp dword [edx + ebx], 0
lea eax, [edx + ebx]
jne 0x4fbda8
cmp dword [eax + 0x88], 0
jne 0x4fbd6e
cmp dword [eax + 0x70], 0
je 0x4fbda8
test dword [eax + 0x8c], 0x1000
je 0x4fbd86
test dword [esi + 0xa17c], 0x200
je 0x4fbda8
push edi
push esi
call fcn.004fd450
add esp, 8
test eax, eax
je 0x4fbda8
mov eax, dword [esp + 0x30]
push edi
push eax
push ebp
push esi
call fcn.00501960
add esp, 0x10
test eax, eax
jne 0x4fbdb9
add edi, 1
add ebx, 0xb4
cmp edi, dword [esi + 0x70c]
jl 0x4fbd50
mov dword [esp + 0x28], edi
cmp edi, dword [esi + 0x70c]
jge 0x4fbe72
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x704]
mov ecx, eax
imul ecx, ecx, 0xb4
mov ebx, dword [ecx + edx + 0x88]
mov edi, dword [ecx + edx + 0x70]
add ecx, edx
test ebx, ebx
je 0x4fbe3b
mov eax, dword [ecx + 0xa8]
imul eax, eax, 0xb4
mov edi, dword [eax + edx + 0x28]
mov ecx, dword [eax + edx + 0x74]
mov ebx, dword [eax + edx + 0x7c]
mov ebp, dword [eax + edx + 0x18]
sub edi, dword [eax + edx + 0x78]
add ebx, dword [eax + edx + 0x14]
add eax, edx
add ebp, ecx
sub edi, ecx
mov edx, dword [esp + 0x28]
push edx
push esi
call fcn.004fd450
add esp, 8
test eax, eax
jle 0x4fbe72
cmp eax, 0x5a
jne 0x4fbe68
sub edi, dword [esp + 0x30]
add edi, ebp
add edi, ebx
mov dword [esp + 0x2c], edi
jmp 0x4fbe72
test edi, edi
jle 0x4fbdf2
mov ecx, dword [esi + 0x588c]
imul edi, edi, 0x84
cmp dword [edi + ecx + 0x6c], 0
je 0x4fbdf2
imul eax, eax, 0xb4
mov ebx, dword [eax + edx + 0x14]
mov ebp, dword [eax + edx + 0x18]
mov edi, dword [eax + edx + 0x28]
add eax, edx
jmp 0x4fbe16
sub ebx, ebp
add ebx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov eax, dword [esi + 0x138]
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + ecx*4]
test byte [edx + 0x3c], 0x20
je 0x4fc0f9
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
mov dword [esp + 0x28], 0xffffffff
je 0x4fbf56
cmp ebx, dword [esi + 0x70c]
jge 0x4fbf67
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi + 0x704]
add eax, edi
cmp dword [eax], 0
jne 0x4fbf37
test dword [eax + 0x8c], 0x1000
je 0x4fbed5
test dword [esi + 0xa17c], 0x200
je 0x4fbf37
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x28]
push ebx
push esi
mov dword [esp + 0x28], edx
call fcn.004fd450
add esp, 8
test eax, eax
je 0x4fbf03
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004e0910
add esp, 8
mov edx, dword [esi + 0x704]
mov eax, dword [edx + edi + 0x14]
cmp dword [esp + 0x2c], eax
lea ecx, [edx + edi]
jl 0x4fbf37
mov edx, dword [esp + 0x14]
add eax, edx
cmp dword [esp + 0x2c], eax
jge 0x4fbf37
mov ecx, dword [ecx + 0x18]
cmp dword [esp + 0x30], ecx
jl 0x4fbf37
mov eax, dword [esp + 0x20]
add ecx, eax
cmp dword [esp + 0x30], ecx
jl 0x4fbf4c
add ebx, 1
add edi, 0xb4
cmp ebx, dword [esi + 0x70c]
jl 0x4fbeb0
cmp ebx, dword [esi + 0x70c]
jge 0x4fbf67
jmp 0x4fbf63
mov ecx, dword [esi + 0x704]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x70c]
jge 0x4fc0f9
mov edx, dword [esp + 0x34]
imul eax, eax, 0xb4
mov ecx, dword [esi + 0x704]
mov ebp, dword [ecx + eax + 0x14]
lea edi, [esi + 0x6f8]
push edi
push 0
push edx
push esi
mov dword [esp + 0x2c], edi
call fcn.004fa580
xor ebx, ebx
add esp, 0x10
cmp dword [edi], ebx
mov dword [esi + 0x6f4], eax
jle 0x4fc0d6
mov eax, dword [esi + 0x6f4]
lea edi, [ebx + ebx*2]
shl edi, 4
lea ecx, [edi + eax]
mov eax, dword [ecx + 8]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
add eax, ebp
push 0
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.004fcd30
mov edx, dword [esi + 0x6f4]
lea ecx, [edi + edx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0xc]
add eax, dword [ecx + 8]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
add eax, ebp
push 0
push eax
push esi
mov dword [esp + 0x40], eax
call fcn.004fcd30
mov edx, dword [esp + 0x38]
add esp, 0x28
cmp edx, eax
mov dword [esp + 0x18], eax
jle 0x4fc02a
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004e0910
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esp, 8
test ebx, ebx
jne 0x4fc052
mov ecx, dword [esi + 0x6f4]
mov ecx, dword [ecx + 0x28]
test ecx, ecx
je 0x4fc045
cmp dword [esp + 0x2c], eax
jge 0x4fc04b
test ecx, ecx
jne 0x4fc052
cmp dword [esp + 0x2c], edx
jge 0x4fc058
mov ecx, ebp
jmp 0x4fc0cd
cmp dword [esp + 0x2c], edx
jl 0x4fc05e
cmp dword [esp + 0x2c], eax
jl 0x4fc09a
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
sub ecx, 1
cmp ebx, ecx
jne 0x4fc089
mov ecx, dword [esi + 0x6f4]
mov edi, dword [edi + ecx + 0x28]
test edi, edi
je 0x4fc083
cmp dword [esp + 0x2c], edx
jl 0x4fc0c5
test edi, edi
jne 0x4fc089
cmp dword [esp + 0x2c], eax
jge 0x4fc0c5
mov edx, dword [esp + 0x1c]
add ebx, 1
cmp ebx, dword [edx]
jl 0x4fbfb2
jmp 0x4fc0d6
mov edi, dword [esi + 0x6f4]
lea ecx, [ebx + ebx*2]
shl ecx, 4
add edi, ecx
mov ecx, dword [edi + 8]
add ecx, ebp
cmp dword [edi + 0x10], 0
je 0x4fc0bb
sub eax, dword [esp + 0x2c]
add ecx, eax
jmp 0x4fc0cd
mov eax, dword [esp + 0x2c]
sub eax, edx
add ecx, eax
jmp 0x4fc0cd
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ebp - 1]
cmp ecx, 0xffffffff
je 0x4fc0d6
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + 0x6f4]
push edx
call fcn.004e2910
mov ecx, dword [esp + 0x20]
add esp, 4
xor eax, eax
mov dword [esi + 0x6f4], eax
mov dword [esi + 0x6fc], eax
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret