Function at 0x4bed71
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 0x4bf405
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x54]
mov edx, 0x10
call fcn.00407c84
cmp dword [ebx + 0x10], 0
je 0x4becee
cmp dword [ebx + 0x14], 0
jne 0x4becfa
mov dword [ebp - 4], 2
jmp 0x4bf3da
cmp dword [ebx], 0
je 0x4bed05
cmp dword [ebx + 4], 0
jne 0x4bed11
mov dword [ebp - 4], 4
jmp 0x4bf3da
cmp dword [ebx + 0xc8], 0
jne 0x4bed26
mov dword [ebp - 4], 7
jmp 0x4bf3da
cmp dword [ebx + 0x34], 0
je 0x4bed4a
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x4bed3e
mov eax, esi
call fcn.0040a0f4
test eax, eax
jne 0x4bed4a
mov dword [ebp - 4], 0x10
jmp 0x4bf3da
mov eax, dword [ebx + 8]
cmp eax, 5
ja case.default.0x4bed52
jmp dword [eax*4 + 0x4bed59]
mov byte [ebp - 0x48], 1
jmp 0x4beda1
mov byte [ebp - 0x48], 1
jmp 0x4beda1
mov byte [ebp - 0x48], 0
jmp 0x4beda1
mov byte [ebp - 0x48], 7
jmp 0x4beda1
mov byte [ebp - 0x48], 4
jmp 0x4beda1
mov byte [ebp - 0x48], 5
jmp 0x4beda1
mov dword [ebp - 4], 0xa
jmp 0x4bf3da
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x10]
call fcn.00404bb0
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
call fcn.00407c7c
xor eax, eax
push ebp
push 0x4bee4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
cmp eax, 4
ja case.default.0x4bedd0
jmp dword [eax*4 + 0x4bedd7]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call 0x4bc114
jmp 0x4bee40
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bc21c
jmp 0x4bee40
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bc330
jmp 0x4bee40
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bc44c
jmp 0x4bee40
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004bc578
jmp 0x4bee40
mov dword [ebp - 4], 0xb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bf3da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bee5e
mov eax, dword [ebp - 0x14]
call fcn.00404824
test eax, eax
je 0x4bf3da
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.004bcfb4
add esi, 2
test byte [ebp - 0x3d], 1
je 0x4bee9b
add esi, 2
test byte [ebp - 0x3d], 2
je 0x4beea4
add esi, 6
test byte [ebp - 0x3d], 4
je 0x4beef6
lea eax, [ebp - 0x258]
mov edx, dword [ebx + 0xc8]
call fcn.0040475c
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
mov edx, dword [ebx + 0x38]
call fcn.004bd030
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4beeee
cmp dword [ebx + 0x34], 0
je 0x4bf3da
mov dword [ebp - 4], 0xf
jmp 0x4bf3da
mov eax, dword [ebp - 0x3c]
sub eax, 2
add esi, eax
test byte [ebp - 0x3d], 0x10
je 0x4beeff
add esi, 2
test byte [ebp - 0x3d], 8
je 0x4bef08
add esi, 2
test byte [ebp - 0x3d], 0x20
je 0x4bef11
add esi, 2
test byte [ebp - 0x3d], 0x40
je 0x4bef1a
add esi, 2
test byte [ebp - 0x3d], 0x80
je 0x4bef5b
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.004bcfb4
test byte [ebp - 0x3e], 1
je 0x4bef49
add edi, 2
test byte [ebp - 0x3e], 2
je 0x4bef52
add edi, 2
test byte [ebp - 0x3e], 4
je 0x4bef5b
add edi, 2
add esi, edi
mov eax, dword [ebp - 0x14]
call fcn.00404824
cdq
push edx
push eax
mov eax, esi
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4bef7e
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4bef86
jmp 0x4bf3da
pop edx
pop eax
jge 0x4bf3da
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404a84
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404824
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.00404a84
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
call fcn.00404bb0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x10]
call fcn.00407c7c
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404870
lea eax, [ebp - 0x25c]
mov edx, dword [ebx + 0xc8]
call fcn.0040475c
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x54]
call fcn.004bd474
test al, al
jne 0x4bf01f
mov dword [ebp - 4], 9
lea eax, [ebp - 0x54]
call fcn.004bcd6c
jmp 0x4bf3da
xor ecx, ecx
push ebp
push 0x4bf3d3
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.004be85c
test al, al
je 0x4bf3bd
mov eax, dword [ebp - 0xc]
call fcn.00404824
mov ecx, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0xc]
call fcn.00407c7c
mov eax, dword [ebp - 0xc]
call fcn.00404824
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.004bcfb4
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.004bcfb4
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.0040bbd4
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.0047d574
movzx eax, ax
mov dword [ebx + 0x18], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047d598
movzx eax, ax
mov dword [ebx + 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047d5bc
movzx eax, ax
mov dword [ebx + 0x20], eax
test byte [ebp - 0x3d], 1
je 0x4bf178
mov dword [ebx + 0x24], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040bbd4
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.0047d574
movzx eax, ax
mov dword [ebx + 0x28], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047d598
movzx eax, ax
mov dword [ebx + 0x2c], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0047d5bc
movzx eax, ax
mov dword [ebx + 0x30], eax
jmp 0x4bf17d
xor eax, eax
mov dword [ebx + 0x24], eax
test byte [ebp - 0x3d], 2
je 0x4bf1c1
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 0x4bf1b6
mov dword [ebx + edx*4 + 0x84], 0xffffffff
movzx eax, ax
shr eax, 1
inc edx
cmp edx, 0x11
jne 0x4bf1a7
test byte [ebp - 0x3d], 4
je 0x4bf1ff
mov edi, dword [ebp - 0x3c]
sub edi, 2
mov ecx, edi
lea edx, [ebp - 0x252]
lea eax, [ebp + esi - 0x154]
call fcn.004092a8
test al, al
jne 0x4bf1f6
mov dword [ebp - 4], 0x11
call fcn.00403f54
jmp 0x4bf3da
add esi, edi
mov dword [ebx + 0x34], 0xffffffff
test byte [ebp - 0x3d], 0x10
je 0x4bf21e
mov dword [ebx + 0x3c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x40], eax
add esi, 2
jmp 0x4bf223
xor eax, eax
mov dword [ebx + 0x3c], eax
test byte [ebp - 0x3d], 8
je 0x4bf242
mov dword [ebx + 0x44], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x48], eax
add esi, 2
jmp 0x4bf247
xor eax, eax
mov dword [ebx + 0x44], eax
test byte [ebp - 0x3d], 0x20
je 0x4bf266
mov dword [ebx + 0x4c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x50], eax
add esi, 2
jmp 0x4bf26b
xor eax, eax
mov dword [ebx + 0x4c], eax
test byte [ebp - 0x3d], 0x40
je 0x4bf28a
mov dword [ebx + 0x54], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x58], eax
add esi, 2
jmp 0x4bf28f
xor eax, eax
mov dword [ebx + 0x54], eax
test byte [ebp - 0x3d], 0x80
je 0x4bf3b8
lea eax, [ebp + esi - 0x154]
mov al, byte [eax]
mov byte [ebp - 0x3e], al
inc esi
test byte [ebp - 0x3e], 1
je 0x4bf2c5
mov dword [ebx + 0x5c], 0xffffffff
lea eax, [ebp + esi - 0x154]
movzx eax, word [eax]
mov dword [ebx + 0x60], eax
add esi, 2
jmp 0x4bf2ca
xor eax, eax
mov dword [ebx + 0x5c], eax
test byte [ebp - 0x3e], 2
je 0x4bf33c
mov dword [ebx + 0x64], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040bbd4
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.0047d574
movzx eax, ax
mov dword [ebx + 0x68], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0047d598
movzx eax, ax
mov dword [ebx + 0x6c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0047d5bc
movzx eax, ax
mov dword [ebx + 0x70], eax
jmp 0x4bf341
xor eax, eax
mov dword [ebx + 0x64], eax
test byte [ebp - 0x3e], 4
je 0x4bf3b3
mov dword [ebx + 0x74], 0xffffffff
mov cx, 1
mov dx, 1
mov ax, 0x7d0
call fcn.0040bbd4
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.0047d574
movzx eax, ax
mov dword [ebx + 0x78], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0047d598
movzx eax, ax
mov dword [ebx + 0x7c], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0047d5bc
movzx eax, ax
mov dword [ebx + 0x80], eax
jmp 0x4bf3b8
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 0x4bf3da
lea eax, [ebp - 0x54]
call fcn.004bcd6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf40c
lea eax, [ebp - 0x25c]
mov edx, 2
call fcn.00404578
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404578
ret