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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [esi + 0x34]
push edi
cmp eax, 1
jne 0x4bf8ad
mov eax, dword [ebp + 8]
push ecx
push eax
mov ecx, ebx
call fcn.004bee50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x4bf8c7
push ecx
mov ecx, dword [ebp + 8]
push ecx
mov eax, ebx
call fcn.004bf5c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
push edx
call fcn.004a5600
mov ecx, dword [esi + 0xc]
call fcn.004a5110
mov eax, dword [ebp + 8]
add eax, ebx
mov edi, ebx
mov dword [ebp - 0x1c], eax
cmp ebx, eax
jae 0x4bfc6f
nop
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esi + 0x1490], ecx
cmp eax, 0xffffffff
je 0x4bf908
mov dword [esi + 0x1490], eax
jmp 0x4bf917
cmp dword [esi + 0x14], ecx
je 0x4bf917
movzx edx, byte [edi]
inc edi
mov dword [esi + 0x1490], edx
movzx eax, byte [edi]
inc edi
mov dword [ebp - 0x14], edi
mov dword [esi + 0x1494], eax
cmp dword [esi + 0x14], ecx
je 0x4bf946
cmp dword [esi + 0x18], 1
jne 0x4bf946
mov edx, dword [esi + 0x1490]
shl edx, 8
or edx, eax
mov dword [esi + 0x1494], edx
mov dword [esi + 0x1490], ecx
mov edx, dword [esi + 0x1490]
mov dword [esi + 0x1498], ecx
mov dword [esi + 0x149c], ecx
mov dword [esi + 0x14a0], ecx
mov dword [esi + 0x14a4], ecx
cmp dword [esi + edx*4 + 0x874], ecx
je 0x4bfbeb
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x1494]
mov edi, dword [esi + edx*4 + 0x874]
mov edi, dword [edi + 0x8cc]
lea eax, [ebx + eax*4]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov dword [esi + 0x14a0], eax
mov eax, dword [eax]
mov dword [esi + 0x14a4], eax
cmp eax, ecx
je 0x4bfbe8
mov edx, dword [eax]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0x48]
add edx, ebx
mov ebx, dword [eax + 4]
and edx, 3
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x1498], eax
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x14a4]
mov eax, dword [edx + 0x14]
mov dword [esi + 0x149c], eax
add dword [edi + 0x80], eax
mov eax, 0x10624dd3
imul dword [edi + 0x80]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add ebx, 7
and ebx, 0xfff8
add eax, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
test eax, eax
jle 0x4bfa21
mov edx, dword [edi + 0x80]
mov ebx, eax
imul ebx, ebx, 0x3e8
sub edx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [edi + 0x80], edx
mov edx, dword [edi + 0x48]
test edx, edx
jne 0x4bfa2d
add dword [edi + 0x78], eax
jmp 0x4bfa49
cmp edx, 1
jne 0x4bfa37
add dword [edi + 0x7c], eax
jmp 0x4bfa49
cmp edx, 2
jne 0x4bfa41
sub dword [edi + 0x78], eax
jmp 0x4bfa49
cmp edx, 3
jne 0x4bfa49
sub dword [edi + 0x7c], eax
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x48]
mov edx, 1
mov dword [ebp - 8], edx
test edi, edi
jne 0x4bfa96
mov edi, dword [esi + 0x14a4]
mov edx, dword [edi + 0x24]
mov ecx, dword [eax + 0x7c]
sub ecx, dword [edi + 0x30]
add edx, dword [eax + 0x78]
mov edi, dword [ebp + 8]
add ecx, edi
mov dword [ebp - 4], edx
test edx, edx
js 0x4bfa8f
add edx, ebx
cmp edx, dword [eax + 0x1c]
jg 0x4bfa8f
mov edx, ecx
sub edx, edi
js 0x4bfa8f
cmp ecx, dword [eax + 0x20]
jle 0x4bfb45
xor edx, edx
jmp 0x4bfb48
cmp edi, 1
jne 0x4bfad0
mov ecx, dword [esi + 0x14a4]
mov edx, dword [ecx + 0x30]
add edx, dword [eax + 0x78]
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + 0x24]
add ecx, dword [eax + 0x7c]
sub edx, edi
mov dword [ebp - 4], edx
test edx, edx
js 0x4bfacc
add edx, edi
cmp edx, dword [eax + 0x1c]
jg 0x4bfacc
test ecx, ecx
js 0x4bfacc
lea edx, [ecx + ebx]
cmp edx, dword [eax + 0x20]
jle 0x4bfb45
xor edx, edx
jmp 0x4bfb48
cmp edi, 2
jne 0x4bfb0a
mov ecx, dword [esi + 0x14a4]
mov edx, dword [eax + 0x78]
sub edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x30]
add ecx, dword [eax + 0x7c]
mov edi, edx
sub ecx, dword [ebp + 8]
sub edi, ebx
mov dword [ebp - 4], edx
js 0x4bfb06
cmp edx, dword [eax + 0x1c]
jg 0x4bfb06
test ecx, ecx
js 0x4bfb06
mov edx, dword [ebp + 8]
add edx, ecx
cmp edx, dword [eax + 0x20]
jle 0x4bfb45
xor edx, edx
jmp 0x4bfb48
cmp edi, 3
jne 0x4bfb48
mov edi, dword [esi + 0x14a4]
mov edx, dword [eax + 0x78]
sub edx, dword [edi + 0x30]
mov ecx, dword [eax + 0x7c]
add edx, dword [ebp + 8]
sub ecx, dword [edi + 0x24]
mov dword [ebp - 4], edx
sub edx, dword [ebp + 8]
js 0x4bfa8f
mov edx, dword [ebp - 4]
cmp edx, dword [eax + 0x1c]
jg 0x4bfa8f
mov edx, ecx
sub edx, ebx
jmp 0x4bfa84
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc dword [eax + edi*4 + 0x68]
cmp edi, 1
jne 0x4bfb5d
mov dword [ebp - 0xc], 3
jmp 0x4bfb69
cmp edi, 3
jne 0x4bfb69
mov dword [ebp - 0xc], 1
test edx, edx
je 0x4bfbcb
mov edi, dword [esi + 0xc]
sub esp, 8
mov edx, esp
mov eax, ebx
mov bl, byte [edi + 0x58]
sar eax, 3
imul eax, dword [ebp + 8]
mov byte [edx], bl
mov edi, dword [edi + 0x5c]
mov dword [edx + 4], edi
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [edx + 0x20]
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
sub esp, 0x10
fild dword [ebp - 0x18]
fstp dword [esp + 0xc]
fild dword [ebp - 4]
fstp dword [esp + 8]
fild dword [ebp + 8]
fstp dword [esp + 4]
fild dword [ebp - 0x10]
fstp dword [esp]
call fcn.00482120
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x48]
mov ebx, dword [esi + 0x1498]
cmp edx, ecx
jne 0x4bfc4a
add dword [eax + 0x78], ebx
jmp 0x4bfc66
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x1494]
cmp eax, dword [esi + 0x3c]
jne 0x4bfbd0
cmp dword [esi + 0x14], ecx
je 0x4bfc00
cmp edx, dword [esi + 0x40]
jne 0x4bfbd0
mov ebx, dword [esi + 0xc]
cmp dword [ebx + 0xc4], ecx
je 0x4bfc2e
mov eax, dword [ebx + 0xc8]
imul eax, dword [ebx + 0x38]
cdq
idiv dword [ebx + 0x34]
mov ecx, ebx
mov dword [esi + 0x1498], eax
mov eax, dword [esi + 0x149c]
call fcn.004a5cf0
jmp 0x4bfbce
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + ecx*4 + 0x44]
mov eax, dword [esi + 0x149c]
mov ecx, ebx
mov dword [esi + 0x1498], edx
call fcn.004a5cf0
jmp 0x4bfbce
cmp edx, 1
jne 0x4bfc54
add dword [eax + 0x7c], ebx
jmp 0x4bfc66
cmp edx, 2
jne 0x4bfc5e
sub dword [eax + 0x78], ebx
jmp 0x4bfc66
cmp edx, 3
jne 0x4bfc66
sub dword [eax + 0x7c], ebx
cmp edi, dword [ebp - 0x1c]
jb 0x4bf8f0
mov eax, dword [esi]
add eax, 0x10
mov ecx, esi
call fcn.004bed40
mov ecx, dword [esi + 0xc]
call fcn.004a5260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8