Function at 0x4bf1fc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x4bf204
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bf6c7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0x80000001
jne 0x4bf238
lea eax, [ebp - 0xc]
mov edx, 0x4bf6e0
call fcn.004041e4
cmp dword [ebp - 8], 0x80000002
jne 0x4bf24e
lea eax, [ebp - 0xc]
mov edx, 0x4bf6f0
call fcn.004041e4
mov dl, 1
mov eax, dword [0x41802c]
call fcn.004032cc
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov edx, 0x4bf700
call fcn.004041e4
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049b138
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4bf690
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4bf690
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
mov eax, dword [0x4c56d8]
mov eax, dword [eax]
call fcn.0047b658
cmp byte [0x4c70e0], 0
je 0x4bf686
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0040441c
test eax, eax
je 0x4bf686
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
imul eax, esi, 0x64
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fdivrp st(1)
call fcn.00402ab0
push edx
push eax
mov eax, dword [ebp - 0x1c]
cdq
cmp edx, dword [esp + 4]
jne 0x4bf307
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4bf37d
jmp 0x4bf30b
pop edx
pop eax
jge 0x4bf37d
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
imul eax, esi, 0x64
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fdivrp st(1)
call fcn.00402ab0
mov dword [ebp - 0x1c], eax
cmp dword [0x4c70e8], 2
jne 0x4bf354
fild dword [ebp - 0x1c]
fld xword [0x4bf730]
fmulp st(1)
call fcn.00402ab0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
call fcn.0045ad30
cmp dword [0x4c70e8], 3
jne 0x4bf37d
fild dword [ebp - 0x1c]
fld xword [0x4bf730]
fmulp st(1)
call fcn.00402ab0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x528]
call fcn.0045ad30
lea ecx, [ebp - 0x14]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049b1d8
mov eax, dword [ebp - 0x18]
call fcn.0040441c
test eax, eax
jne 0x4bf4ac
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x34]
mov eax, dword [0x4c7104]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x3c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049df48
cmp dword [ebp - 8], 0x80000001
jne 0x4bf432
push 0x4bf744
push dword [ebp - 0x10]
push 0x4bf760
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x40]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 8], 0x80000002
jne 0x4bf464
push 0x4bf76c
push dword [ebp - 0x10]
push 0x4bf760
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x44]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4bf788
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x4c]
push 0x4bf794
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x48]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4bf686
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.0049d204
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x18]
call fcn.004041e4
mov edx, dword [ebp - 0x18]
mov eax, 0x4bf7a0
call fcn.00404760
test eax, eax
jg 0x4bf686
mov edx, dword [ebp - 0x18]
mov eax, 0x4bf7b4
call fcn.00404760
test eax, eax
jg 0x4bf686
mov eax, dword [ebp - 0x18]
call fcn.004094dc
test al, al
jne 0x4bf686
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.004098c8
mov edx, dword [0x4c55c8]
mov edx, dword [edx]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
call fcn.00404468
mov eax, dword [ebp - 0x54]
call fcn.004094dc
test al, al
jne 0x4bf686
mov eax, dword [0x4c55c8]
push dword [eax]
push 0x4bf7c8
push dword [ebp - 0x14]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.004044dc
mov eax, dword [ebp - 0x58]
call fcn.004094dc
test al, al
jne 0x4bf686
mov eax, dword [0x4c55c8]
push dword [eax]
push 0x4bf7d8
push dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.004044dc
mov eax, dword [ebp - 0x5c]
call fcn.004094dc
test al, al
jne 0x4bf686
push 0x4bf7ec
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x4c5840]
mov eax, dword [eax]
mov ecx, 0x4bf804
mov edx, 0x4bf81c
mov edi, dword [eax]
call dword [edi]
push dword [ebp - 0x64]
push 0x4bf82c
push dword [ebp - 0x18]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4c7104]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x68]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0049df48
cmp dword [ebp - 8], 0x80000001
jne 0x4bf611
push 0x4bf744
push dword [ebp - 0x10]
push 0x4bf760
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 8], 0x80000002
jne 0x4bf643
push 0x4bf76c
push dword [ebp - 0x10]
push 0x4bf760
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x70]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4bf788
lea ecx, [ebp - 0x78]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x78]
push 0x4bf794
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004044dc
mov edx, dword [ebp - 0x74]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x4c5420]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 0x20]
jne 0x4bf2a0
mov eax, ebx
call fcn.004032fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf6ce
lea eax, [ebp - 0x78]
mov edx, 0x13
call fcn.00404170
lea eax, [ebp - 0x24]
call fcn.0040414c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404170
ret