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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test dword [ecx + 0x38], 0x4000
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x4bfd2a
push edi
push ebx
push esi
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov edx, dword [edx + ebx*4]
mov edi, eax
mov eax, dword [edx + 0x30]
add esp, 8
cmp eax, ebp
mov dword [esp + 0x2c], edi
je 0x4bf899
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
test dword [ecx + eax + 0x28], 0x8000
je 0x4bfd29
xor ecx, ecx
cmp dword [edx + 0xc], ebp
jle 0x4bf8fe
movzx eax, word [edi + ecx*2]
mov edx, dword [esi + 0x3434]
imul eax, eax, 0x170
add eax, edx
cmp dword [eax + 0x13c], ebp
je 0x4bf8ed
test byte [eax + 0x134], 0x80
je 0x4bf8ed
cmp dword [eax + 0xc0], ebp
je 0x4bf8ed
mov eax, dword [eax + 0xc4]
cmp eax, ebp
je 0x4bf8ed
mov edx, dword [esi + 0x72c]
imul eax, eax, 0x98
and dword [edx + eax + 0x28], 0xffff7fff
lea eax, [edx + eax + 0x28]
mov eax, dword [esi + 0x138]
mov edx, dword [eax + ebx*4]
add ecx, 1
cmp ecx, dword [edx + 0xc]
jl 0x4bf8a0
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
xor eax, eax
cmp dword [edx + 0xc], ebp
mov dword [esp + 0x20], eax
jle 0x4bfd1f
jmp 0x4bf920
movzx ecx, word [edi + eax*2]
mov edx, dword [esi + 0x3434]
imul ecx, ecx, 0x170
add edx, ecx
cmp dword [edx + 0x13c], 0
mov dword [esp + 0x38], ecx
je 0x4bfd06
test byte [edx + 0x134], 0x80
je 0x4bfd06
cmp dword [edx + 0xc0], 0
je 0x4bfd06
cmp dword [edx + 0xc4], 0
je 0x4bfd06
mov eax, dword [esi + 0x3434]
mov edi, dword [eax + ecx + 0xc4]
add eax, ecx
cmp dword [eax + 0xc0], 3
mov dword [esp + 0x1c], edi
jne 0x4bf9a3
mov ebp, dword [esi + 0x72c]
mov eax, edi
imul eax, eax, 0x98
test byte [eax + ebp + 0x28], 0xc
mov dword [esp + 0x34], 0
je 0x4bf9ab
mov dword [esp + 0x34], 1
cmp dword [edx + 0x88], 0xb
je 0x4bfa0e
mov edx, dword [esi + 0x72c]
mov ebp, dword [esi + 0x3434]
mov ebp, dword [ecx + ebp + 0xb4]
mov eax, edi
imul eax, eax, 0x98
mov edi, dword [edx + eax + 0x14]
add edx, eax
lea edi, [ebp + edi*2]
mov dword [edx + 0x10], edi
mov edx, dword [esi + 0x72c]
mov edi, dword [edx + eax + 0x14]
mov ebp, dword [esi + 0x3434]
mov ecx, dword [ecx + ebp + 0xb0]
add edx, eax
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 0x1c]
mov dword [edx + 0x18], ecx
mov edx, dword [esi + 0x72c]
mov ecx, dword [eax + edx + 0x18]
add eax, edx
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x72c]
imul edi, edi, 0x98
cmp dword [esp + 0x34], 0
mov dword [edi + edx + 0x2c], ebx
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esi + 0x72c]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [esp + 0x40]
mov dword [edi + edx + 0x50], eax
mov edx, dword [esi + 0x510]
mov dword [esp + 0x18], ecx
je 0x4bfbc8
mov eax, dword [esp + 0x3c]
push edx
push 0x5a0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + ebx*4]
mov ebp, eax
mov eax, dword [edx + 0x2c]
test eax, eax
jle 0x4bfabc
mov edx, dword [esi + 0x588c]
mov ecx, eax
imul ecx, ecx, 0x84
add ebp, dword [ecx + edx + 0x2c]
add ecx, edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [esi + 0x514]
push 0x5a0
push ecx
push 0
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x60]
push edx
lea ecx, [esp + 0x44]
push ecx
push eax
push esi
call fcn.004bdac0
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x3434]
mov eax, dword [esp + 0x38]
cmp dword [edx + eax + 0xc0], 2
je 0x4bfb18
mov ecx, dword [esi + 0x72c]
mov eax, dword [edi + ecx + 0x28]
test al, 4
jne 0x4bfb18
test al, 8
je 0x4bfb12
mov edx, dword [esi + 0x500]
push edx
push 0x5a0
push 0xffffffffffffffff
push ebx
push esi
call fcn.004f8120
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x72c]
sub eax, dword [edi + ecx + 0x10]
cdq
sub eax, edx
sar eax, 1
jmp 0x4bfb41
add ebp, dword [esp + 0x14]
jmp 0x4bfb47
mov edx, dword [esi + 0x500]
push edx
push 0x5a0
push 0xffffffffffffffff
push ebx
push esi
call fcn.004f8120
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x72c]
sub eax, dword [edi + ecx + 0x10]
sub eax, dword [esp + 0x10]
add ebp, eax
mov edx, dword [esi + 0x72c]
mov dword [edi + edx + 4], ebp
mov eax, dword [esi + 0x72c]
mov dword [edi + eax + 0xc], 0
mov ecx, dword [esi + 0x138]
mov eax, dword [ecx + ebx*4]
test byte [eax + 0x38], 4
jne 0x4bfb8e
mov edx, dword [esi + 0x514]
mov eax, dword [eax + 0x18]
push edx
push 0x5a0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x72c]
mov dword [edi + ecx + 0xc], eax
mov edx, dword [esi + 0x3434]
mov eax, dword [esp + 0x38]
cmp dword [edx + eax + 0xc0], 2
jne 0x4bfbb5
mov ecx, dword [esi + 0x72c]
mov edx, dword [edi + ecx + 0x10]
add dword [esp + 0x10], edx
jmp 0x4bfcae
mov eax, dword [esi + 0x72c]
mov ecx, dword [edi + eax + 0x10]
add dword [esp + 0x14], ecx
jmp 0x4bfcae
mov eax, dword [esi + 0x72c]
mov ecx, dword [edi + eax + 0x68]
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebx*4]
cmp dword [ecx + 0x2c], 0
mov ebp, eax
mov dword [esp + 0x38], ecx
jle 0x4bfc09
mov eax, dword [esi + 0x72c]
mov eax, dword [edi + eax + 0x28]
test eax, 0x1000000
mov dword [esp + 0x34], eax
jne 0x4bfc1e
mov edx, dword [esi + 0x72c]
mov eax, dword [edi + edx + 0x28]
test eax, 0x60000000
mov dword [esp + 0x34], eax
je 0x4bfc22
add ebp, dword [esp + 0x3c]
test byte [esp + 0x34], 1
je 0x4bfc4e
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x39c0]
imul eax, eax, 0x98
fld dword [ecx + eax + 4]
fimul dword [esi + 0x510]
call fcn.005ac350
mov ecx, dword [esp + 0x38]
sub ebp, eax
test dword [esp + 0x34], 0x60000000
je 0x4bfc91
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4bfc91
cmp dword [eax + 0x6c], 0
jne 0x4bfc91
cmp dword [eax + 0x78], 0
jle 0x4bfc91
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push ebx
push esi
call fcn.004bf700
add esp, 0x18
cmp dword [esp + 0x24], 0
jne 0x4bfc91
add ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x510]
push edx
push 0x5a0
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x72c]
mov dword [edi + ecx + 4], eax
mov edx, dword [esi + 0x72c]
and dword [edi + edx + 0x28], 0xffff7fff
mov ecx, dword [esp + 0x4c]
lea eax, [edi + edx + 0x28]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push ebx
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push edx
push esi
call fcn.004ba810
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x3a10]
mov edi, dword [esp + 0x50]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*8 + 0x3c]
add esp, 0x24
add dword [eax], 1
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x138]
mov ecx, dword [edx + ebx*4]
add eax, 1
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
jl 0x4bf920
push ebx
push esi
call fcn.004ad1d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret