Function at 0x843908
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x843910
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x843da4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x8dc04c], 1
jne 0x843947
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x53c]
xor edx, edx
call fcn.00505850
cmp dword [0x8dc04c], 0x16
jne 0x843962
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x760]
xor edx, edx
call fcn.00505850
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0x80000001
jne 0x84397d
lea eax, [ebp - 4]
mov edx, 0x843dc0
call fcn.0040a154
cmp dword [ebp - 0x14], 0x80000002
jne 0x843993
lea eax, [ebp - 4]
mov edx, 0x843ddc
call fcn.0040a154
mov dl, 1
mov eax, dword [0x47a398]
call fcn.0049c83c
mov ebx, eax
mov ecx, ebx
mov edx, 0x843df8
mov eax, dword [ebp - 0x14]
call fcn.005d4370
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x843c2b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x843c2b
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x843c21
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x843a06
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x843c21
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
imul eax, esi, 0x64
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fdivrp st(1)
call fcn.004074d0
push edx
push eax
mov eax, dword [ebp - 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x843a44
cmp eax, dword [esp]
pop edx
pop eax
jae 0x843ae7
jmp 0x843a4c
pop edx
pop eax
jge 0x843ae7
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
imul eax, esi, 0x64
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fdivrp st(1)
call fcn.004074d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, 5
cdq
idiv ecx
test edx, edx
jne 0x843aa6
cmp dword [0x8dc04c], 1
jne 0x843aa6
fild dword [ebp - 0x18]
fld xword [0x843e58]
fmulp st(1)
call fcn.004074d0
mov edx, eax
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x53c]
call fcn.00505850
mov eax, dword [ebp - 0x18]
mov ecx, 5
cdq
idiv ecx
test edx, edx
jne 0x843ae0
cmp dword [0x8dc04c], 0x15
jne 0x843ae0
fild dword [ebp - 0x18]
fld xword [0x843e64]
fmulp st(1)
call fcn.004074d0
mov edx, eax
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x760]
call fcn.00505850
push 5
call fcn.0042b1ac
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x2c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x843df8
mov eax, dword [ebp - 0x14]
call fcn.005d4440
mov eax, dword [ebp - 8]
test eax, eax
je 0x843b13
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x843b6b
push dword [ebp - 4]
push 0x843df8
push 0x843e7c
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040ad78
mov eax, dword [0x8d438c]
inc dword [eax]
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, 0x843e8c
call fcn.0040acf0
mov edx, dword [ebp - 0x34]
mov eax, dword [0x8d3eac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x843c21
push dword [ebp - 4]
push 0x843df8
push 0x843e7c
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 - 0x10]
mov edx, 4
call fcn.0040ad78
mov edx, dword [ebp - 0x10]
mov eax, dword [0x8dc0d0]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jg 0x843c21
mov eax, dword [0x8d395c]
cmp byte [eax], 0
je 0x843bc0
mov eax, dword [0x8d3888]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jg 0x843c21
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.00667b0c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
call fcn.0040a154
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00423840
test al, al
jne 0x843c21
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00423f80
mov eax, dword [ebp - 0xc]
call fcn.00666358
test al, al
jne 0x843c21
mov eax, dword [0x8d438c]
inc dword [eax]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov edx, 0x843e8c
call fcn.0040acf0
mov edx, dword [ebp - 0x40]
mov eax, dword [0x8d3eac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec dword [ebp - 0x1c]
jne 0x8439d5
mov ecx, ebx
mov edx, 0x843ea4
mov eax, dword [ebp - 0x14]
call fcn.005d4370
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x843d31
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x843d31
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x843d27
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x843c90
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x843d27
lea ecx, [ebp - 0x48]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x48]
mov edx, 0x843df8
mov eax, dword [ebp - 0x14]
call fcn.005d4db0
test al, al
jne 0x843d27
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x4c]
mov edx, 0x843f40
mov eax, dword [ebp - 0x14]
call fcn.005d4db0
test al, al
jne 0x843d27
push dword [ebp - 4]
push 0x843ea4
push 0x843e7c
lea ecx, [ebp - 0x50]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040ad78
mov eax, dword [0x8d438c]
inc dword [eax]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov edx, 0x843e8c
call fcn.0040acf0
mov edx, dword [ebp - 0x54]
mov eax, dword [0x8d3eac]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec dword [ebp - 0x1c]
jne 0x843c5f
mov eax, ebx
call fcn.00407f90
cmp dword [0x8dc04c], 1
jne 0x843d56
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x53c]
mov edx, 0x30c
call fcn.00505850
cmp dword [0x8dc04c], 0x16
jne 0x843d74
mov eax, dword [0x8dc014]
mov eax, dword [eax + 0x760]
mov edx, 0x2f8
call fcn.00505850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x843dab
lea eax, [ebp - 0x54]
mov edx, 0xb
call fcn.00409d8c
lea eax, [ebp - 0x20]
call fcn.00409d2c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00409d8c
ret