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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bec3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x54]
mov edx, 0x10
call fcn.004077e4
cmp dword [ebx + 0x10], 0
je 0x4be526
cmp dword [ebx + 0x14], 0
jne 0x4be532
mov dword [ebp - 4], 2
jmp 0x4bec12
cmp dword [ebx], 0
je 0x4be53d
cmp dword [ebx + 4], 0
jne 0x4be549
mov dword [ebp - 4], 4
jmp 0x4bec12
cmp dword [ebx + 0xc8], 0
jne 0x4be55e
mov dword [ebp - 4], 7
jmp 0x4bec12
cmp dword [ebx + 0x34], 0
je 0x4be582
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x4be576
mov eax, esi
call fcn.00409bc8
test eax, eax
jne 0x4be582
mov dword [ebp - 4], 0x10
jmp 0x4bec12
mov eax, dword [ebx + 8]
cmp eax, 5
ja case.default.0x4be58a
jmp dword [eax*4 + 0x4be591]
mov byte [ebp - 0x48], 1
jmp 0x4be5d9
mov byte [ebp - 0x48], 1
jmp 0x4be5d9
mov byte [ebp - 0x48], 0
jmp 0x4be5d9
mov byte [ebp - 0x48], 7
jmp 0x4be5d9
mov byte [ebp - 0x48], 4
jmp 0x4be5d9
mov byte [ebp - 0x48], 5
jmp 0x4be5d9
mov dword [ebp - 4], 0xa
jmp 0x4bec12
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x10]
call fcn.004047e0
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.004077dc
xor eax, eax
push ebp
push 0x4be682
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
cmp eax, 4
ja case.default.0x4be608
jmp dword [eax*4 + 0x4be60f]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call 0x4bb91c
jmp 0x4be678
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bba24
jmp 0x4be678
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bbb38
jmp 0x4be678
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bbc54
jmp 0x4be678
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bbd80
jmp 0x4be678
mov dword [ebp - 4], 0xb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bec12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4be696
mov eax, dword [ebp - 0x14]
call fcn.00404454
test eax, eax
je 0x4bec12
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x3d], al
mov esi, 1
xor edi, edi
mov eax, esi
push eax
push 0
lea ecx, [ebp - 0x3d]
mov dl, byte [ebx + 4]
mov eax, dword [ebx]
call fcn.004bc7e0
add esi, 2
test byte [ebp - 0x3d], 1
je 0x4be6d3
add esi, 2
test byte [ebp - 0x3d], 2
je 0x4be6dc
add esi, 6
test byte [ebp - 0x3d], 4
je 0x4be72e
lea eax, [ebp - 0x258]
mov edx, dword [ebx + 0xc8]
call fcn.0040438c
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
mov edx, dword [ebx + 0x38]
call fcn.004bc85c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4be726
cmp dword [ebx + 0x34], 0
je 0x4bec12
mov dword [ebp - 4], 0xf
jmp 0x4bec12
mov eax, dword [ebp - 0x3c]
sub eax, 2
add esi, eax
test byte [ebp - 0x3d], 0x10
je 0x4be737
add esi, 2
test byte [ebp - 0x3d], 8
je 0x4be740
add esi, 2
test byte [ebp - 0x3d], 0x20
je 0x4be749
add esi, 2
test byte [ebp - 0x3d], 0x40
je 0x4be752
add esi, 2
test byte [ebp - 0x3d], 0x80
je 0x4be793
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov byte [ebp - 0x3e], al
mov edi, 1
mov eax, edi
push eax
push 0
lea ecx, [ebp - 0x3e]
mov dl, byte [ebx + 4]
mov eax, dword [ebx]
call fcn.004bc7e0
test byte [ebp - 0x3e], 1
je 0x4be781
add edi, 2
test byte [ebp - 0x3e], 2
je 0x4be78a
add edi, 2
test byte [ebp - 0x3e], 4
je 0x4be793
add edi, 2
add esi, edi
mov eax, dword [ebp - 0x14]
call fcn.00404454
cdq
push edx
push eax
mov eax, esi
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4be7b6
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4be7be
jmp 0x4bec12
pop edx
pop eax
jge 0x4bec12
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004046b4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404454
cdq
push edx
push eax
mov eax, esi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0x14]
call fcn.004046b4
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
call fcn.004047e0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x10]
call fcn.004077dc
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004044a0
lea eax, [ebp - 0x25c]
mov edx, dword [ebx + 0xc8]
call fcn.0040438c
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x54]
call fcn.004bcca0
test al, al
jne 0x4be857
mov dword [ebp - 4], 9
lea eax, [ebp - 0x54]
call fcn.004bc574
jmp 0x4bec12
xor ecx, ecx
push ebp
push 0x4bec0b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004be094
test al, al
je 0x4bebf5
mov eax, dword [ebp - 0xc]
call fcn.00404454
mov ecx, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0xc]
call fcn.004077dc
mov eax, dword [ebp - 0xc]
call fcn.00404454
mov esi, eax
mov eax, esi
mov edx, edi
sub al, dl
push eax
push 0
lea ecx, [ebp - 0x154]
mov dl, byte [ebx + 4]
mov eax, dword [ebx]
call fcn.004bc7e0
mov eax, edi
push eax
push 0
sub esi, edi
lea ecx, [ebp + esi - 0x154]
mov dl, byte [ebx + 4]
mov eax, dword [ebx]
call fcn.004bc7e0
xor esi, esi
mov al, byte [ebp + esi - 0x154]
mov byte [ebp - 0x3d], al
inc esi
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040b64c
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebp - 0x260], eax
fild dword [ebp - 0x260]
faddp st(1)
fstp qword [ebp - 0x20]
wait
add esi, 2
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047cb88
movzx eax, ax
mov dword [ebx + 0x18], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047cbac
movzx eax, ax
mov dword [ebx + 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047cbd0
movzx eax, ax
mov dword [ebx + 0x20], eax
test byte [ebp - 0x3d], 1
je 0x4be9b0
mov dword [ebx + 0x24], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040b64c
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebp - 0x260], eax
fild dword [ebp - 0x260]
faddp st(1)
fstp qword [ebp - 0x28]
wait
add esi, 2
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047cb88
movzx eax, ax
mov dword [ebx + 0x28], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047cbac
movzx eax, ax
mov dword [ebx + 0x2c], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047cbd0
movzx eax, ax
mov dword [ebx + 0x30], eax
jmp 0x4be9b5
xor eax, eax
mov dword [ebx + 0x24], eax
test byte [ebp - 0x3d], 2
je 0x4be9f9
lea eax, [ebp + esi - 0x154]
mov eax, dword [eax]
mov dword [ebx + 0x84], eax
add esi, 4
lea eax, [ebp + esi - 0x154]
mov ax, word [eax]
add esi, 2
mov edx, 1
test al, 1
je 0x4be9ee
mov dword [ebx + edx*4 + 0x84], 0xffffffff
movzx eax, ax
shr eax, 1
inc edx
cmp edx, 0x11
jne 0x4be9df
test byte [ebp - 0x3d], 4
je 0x4bea37
mov edi, dword [ebp - 0x3c]
sub edi, 2
mov ecx, edi
lea edx, [ebp - 0x252]
lea eax, [ebp + esi - 0x154]
call fcn.00408dd0
test al, al
jne 0x4bea2e
mov dword [ebp - 4], 0x11
call fcn.00403bac
jmp 0x4bec12
add esi, edi
mov dword [ebx + 0x34], 0xffffffff
test byte [ebp - 0x3d], 0x10
je 0x4bea56
mov dword [ebx + 0x3c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x40], eax
add esi, 2
jmp 0x4bea5b
xor eax, eax
mov dword [ebx + 0x3c], eax
test byte [ebp - 0x3d], 8
je 0x4bea7a
mov dword [ebx + 0x44], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x48], eax
add esi, 2
jmp 0x4bea7f
xor eax, eax
mov dword [ebx + 0x44], eax
test byte [ebp - 0x3d], 0x20
je 0x4bea9e
mov dword [ebx + 0x4c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x50], eax
add esi, 2
jmp 0x4beaa3
xor eax, eax
mov dword [ebx + 0x4c], eax
test byte [ebp - 0x3d], 0x40
je 0x4beac2
mov dword [ebx + 0x54], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x58], eax
add esi, 2
jmp 0x4beac7
xor eax, eax
mov dword [ebx + 0x54], eax
test byte [ebp - 0x3d], 0x80
je 0x4bebf0
lea eax, [ebp + esi - 0x154]
mov al, byte [eax]
mov byte [ebp - 0x3e], al
inc esi
test byte [ebp - 0x3e], 1
je 0x4beafd
mov dword [ebx + 0x5c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x60], eax
add esi, 2
jmp 0x4beb02
xor eax, eax
mov dword [ebx + 0x5c], eax
test byte [ebp - 0x3e], 2
je 0x4beb74
mov dword [ebx + 0x64], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040b64c
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebp - 0x260], eax
fild dword [ebp - 0x260]
faddp st(1)
fstp qword [ebp - 0x30]
wait
add esi, 2
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0047cb88
movzx eax, ax
mov dword [ebx + 0x68], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0047cbac
movzx eax, ax
mov dword [ebx + 0x6c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0047cbd0
movzx eax, ax
mov dword [ebx + 0x70], eax
jmp 0x4beb79
xor eax, eax
mov dword [ebx + 0x64], eax
test byte [ebp - 0x3e], 4
je 0x4bebeb
mov dword [ebx + 0x74], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040b64c
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebp - 0x260], eax
fild dword [ebp - 0x260]
faddp st(1)
fstp qword [ebp - 0x38]
wait
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0047cb88
movzx eax, ax
mov dword [ebx + 0x78], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0047cbac
movzx eax, ax
mov dword [ebx + 0x7c], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0047cbd0
movzx eax, ax
mov dword [ebx + 0x80], eax
jmp 0x4bebf0
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bec12
lea eax, [ebp - 0x54]
call fcn.004bc574
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bec44
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.004041a8
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004041a8
ret