Function at 0x865240
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x51
push 0
push 0
dec ecx
jne 0x865248
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x865eef
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x87c]
mov eax, dword [eax + 0x2a8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x8652a3
inc esi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0x87c]
mov edx, dword [ebp - 0x1c]
call fcn.006d9038
test al, al
je 0x86529d
inc dword [ebp - 0x20]
inc dword [ebp - 0x1c]
dec esi
jne 0x865288
cmp dword [ebp - 0x20], 0
jne 0x8652f4
push 0
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [0x8d4254]
mov eax, dword [eax]
mov ecx, 0x865f0c
mov edx, 0x865f34
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x23c]
mov eax, dword [0x8d41e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x3d0]
call fcn.005063f8
mov eax, dword [0x8d41e0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x150]
jmp 0x865ec4
mov eax, dword [ebx + 0x434]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x434]
mov eax, dword [eax + 0x74]
mov edx, 0x808080
call fcn.004db68c
mov eax, dword [ebx + 0x424]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x438]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x438]
mov eax, dword [eax + 0x74]
mov edx, 0x808080
call fcn.004db68c
mov eax, dword [ebx + 0x428]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x43c]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x43c]
mov eax, dword [eax + 0x74]
mov edx, 0x808080
call fcn.004db68c
mov eax, dword [ebx + 0x42c]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x440]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x440]
mov eax, dword [eax + 0x74]
mov edx, 0x808080
call fcn.004db68c
mov eax, dword [ebx + 0x430]
xor edx, edx
call fcn.00506610
mov eax, dword [ebx + 0x3e4]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x85c]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x860]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x864]
xor edx, edx
call fcn.005062a8
push 0
lea eax, [ebp - 0x240]
push eax
mov eax, dword [0x8d4254]
mov eax, dword [eax]
mov ecx, 0x865f50
mov edx, 0x865f34
mov esi, dword [eax]
call dword [esi + 4]
lea eax, [ebp - 0x240]
mov edx, 0x865f70
call fcn.0040ac98
mov edx, dword [ebp - 0x240]
mov eax, dword [ebx + 0x868]
call fcn.005063f8
mov eax, dword [ebx + 0x86c]
xor edx, edx
call fcn.005063f8
mov eax, dword [ebx + 0x868]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x86c]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x858]
call fcn.00565bb8
mov edi, eax
mov eax, dword [edi + 0x48]
mov edx, 0xcccccc
call fcn.004dc238
mov esi, dword [ebx + 0x870]
mov eax, dword [esi + 0x54]
add eax, 0x10
push eax
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [esi + 0x50]
add ecx, 0x30c
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
call fcn.0048dc84
lea edx, [ebp - 0x238]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebx + 0x874]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x878]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x87c]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x880]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x890]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x894]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x898]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x89c]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8a0]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8a4]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8a8]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8ac]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8b8]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8bc]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8c0]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8c4]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x884]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x884]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov eax, dword [ebx + 0x888]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x88c]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x870]
xor edx, edx
call fcn.00505850
mov eax, dword [ebx + 0x870]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x1414]
mov dl, 1
call fcn.00566614
mov eax, dword [ebx + 0x880]
mov edx, dword [eax]
call dword [edx + 0x118]
cmp eax, 8
ja case.default.0x8655d3
jmp dword [eax*4 + 0x8655da]
mov dword [ebp - 0x20], 1
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 5
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0xa
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x32
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x64
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x12c
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x1f4
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x3e8
jmp case.default.0x8655d3
mov dword [ebp - 0x20], 0x7d0
push 0x208
lea eax, [ebp - 0x228]
push eax
call fcn.00413d08
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ab40
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 4]
call fcn.00423eb0
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x28
push 0
call fcn.00535794
lea eax, [ebp - 8]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ab40
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 8]
call fcn.0042a550
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 8]
call fcn.0040a154
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0xe
push 0
call fcn.00535794
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ab40
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0xc]
call fcn.0042254c
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x865709
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x865725
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x865f84
mov edx, 0x865fa4
mov eax, 0x80000001
call fcn.005d4440
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0xc]
call fcn.0042254c
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x865742
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x865756
lea eax, [ebp - 0xc]
mov ecx, 0x866034
mov edx, dword [ebp - 8]
call fcn.0040acf0
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0xc]
call fcn.0042a550
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0xc]
call fcn.0040a154
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b0d0
dec eax
je 0x865793
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040acf0
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x27
push 0
call fcn.00535794
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ab40
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x10]
call fcn.0042254c
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x8657d7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x8657f3
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x866050
mov edx, 0x865fa4
mov eax, 0x80000001
call fcn.005d4440
lea edx, [ebp - 0x25c]
mov eax, dword [ebp - 0x10]
call fcn.0042254c
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x865810
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x865824
lea eax, [ebp - 0x10]
mov ecx, 0x866074
mov edx, dword [ebp - 8]
call fcn.0040acf0
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x10]
call fcn.0042a550
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x10]
call fcn.0040a154
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040b0d0
dec eax
je 0x865861
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040acf0
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0xd
push 0
call fcn.00535794
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ab40
lea edx, [ebp - 0x264]
mov eax, dword [ebp - 0x14]
call fcn.0042254c
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x8658a5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x8658c1
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x866094
mov edx, 0x865fa4
mov eax, 0x80000001
call fcn.005d4440
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x14]
call fcn.0042254c
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x8658de
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x8658f2
lea eax, [ebp - 0x14]
mov ecx, 0x8660b4
mov edx, dword [ebp - 8]
call fcn.0040acf0
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0x14]
call fcn.0042a550
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x14]
call fcn.0040a154
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040b0d0
dec eax
je 0x86592f
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040acf0
lea eax, [ebp - 0x18]
mov ecx, 0x8660d0
mov edx, dword [ebp - 8]
call fcn.0040acf0
mov dword [0x8dc060], 0
mov dword [0x8dc064], 0
xor eax, eax
mov dword [0x8dc040], eax
mov eax, dword [0x8dc0d4]
mov edx, dword [eax]
call dword [edx + 0x48]
mov byte [0x8dc03c], 1
mov eax, dword [ebx + 0x874]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x865b27
mov eax, dword [ebx + 0x87c]
xor edx, edx
call fcn.006d9038
test al, al
je 0x8659b6
mov eax, dword [0x8d3b64]
mov eax, dword [eax]
mov dl, 1
call fcn.004238d8
test al, al
je 0x8659b6
mov edx, dword [0x8d3b64]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00864cec
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, 1
call fcn.006d9038
test al, al
je 0x8659fe
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004238d8
test al, al
je 0x8659fe
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00864cec
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, 2
call fcn.006d9038
test al, al
je 0x865a46
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.004238d8
test al, al
je 0x865a46
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00864cec
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, 3
call fcn.006d9038
test al, al
je 0x865a8e
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.004238d8
test al, al
je 0x865a8e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00864cec
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, 4
call fcn.006d9038
test al, al
je 0x865adf
mov eax, dword [0x8d3cec]
mov eax, dword [eax]
mov dl, 1
call fcn.004238d8
test al, al
je 0x865adf
mov edx, dword [0x8d3cec]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00864cec
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, 5
call fcn.006d9038
test al, al
je 0x865b27
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004238d8
test al, al
je 0x865b27
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00864cec
mov eax, dword [ebx + 0x878]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, dword [eax]
call dword [edx + 0x134]
mov esi, eax
dec esi
test esi, esi
jl 0x865bad
inc esi
mov dword [ebp - 0x1c], 0
mov eax, dword [0x8d3d98]
mov eax, dword [eax]
call fcn.005c8e1c
cmp byte [0x8dc03c], 0
je 0x865bad
mov eax, dword [ebx + 0x87c]
mov edx, dword [ebp - 0x1c]
call fcn.006d9038
test al, al
je 0x865ba7
lea ecx, [ebp - 0x270]
mov eax, dword [ebx + 0x87c]
mov eax, dword [eax + 0x2a8]
mov edx, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00864cec
inc dword [ebp - 0x1c]
dec esi
jne 0x865b56
mov byte [0x8dc03c], 0
call fcn.00426374
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, 0x8660f4
mov edx, 0x866124
mov eax, 0x80000001
call fcn.005d4bd0
mov eax, dword [ebx + 0x1414]
xor edx, edx
call fcn.00566614
mov eax, dword [ebx + 0x870]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x868]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x86c]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x858]
call fcn.00565bb8
mov edi, eax
mov eax, dword [edi + 0x48]
mov edx, 0xffffff
call fcn.004dc238
mov esi, dword [ebx + 0x870]
mov eax, dword [esi + 0x54]
add eax, 0x10
push eax
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [esi + 0x50]
add ecx, 0x30c
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
call fcn.0048dc84
lea edx, [ebp - 0x238]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, ebx
call fcn.00878928
mov eax, dword [ebx + 0x3e4]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x884]
mov eax, dword [eax + 0x2c4]
call fcn.00544b1c
test eax, eax
jne 0x865cea
xor edx, edx
mov eax, ebx
call fcn.00863c88
push 0
lea eax, [ebp - 0x278]
push eax
mov eax, dword [0x8d4254]
mov eax, dword [eax]
mov ecx, 0x866160
mov edx, 0x865f34
mov ebx, dword [eax]
call dword [ebx + 4]
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x274]
mov edx, 0x86618c
call fcn.0040acf0
mov edx, dword [ebp - 0x274]
mov eax, dword [0x8d41e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x3d0]
call fcn.005063f8
mov eax, dword [0x8d41e0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x150]
jmp 0x865ec4
mov eax, dword [ebx + 0x884]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov eax, dword [ebx + 0x860]
mov edx, 0x1a
call fcn.00505818
mov eax, dword [ebx + 0x884]
mov eax, dword [eax + 0x2c4]
call fcn.00544b1c
lea edx, [ebp - 0x280]
call fcn.00422ef8
push dword [ebp - 0x280]
push 0x8661a0
push 0
lea eax, [ebp - 0x284]
push eax
mov eax, dword [0x8d4254]
mov eax, dword [eax]
mov ecx, 0x866160
mov edx, 0x865f34
mov esi, dword [eax]
call dword [esi + 4]
push dword [ebp - 0x284]
push 0x8661b0
push dword [0x8dc064]
push dword [0x8dc060]
lea eax, [ebp - 0x288]
call fcn.00667468
push dword [ebp - 0x288]
push 0x8661c4
lea eax, [ebp - 0x27c]
mov edx, 6
call fcn.0040ad78
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebx + 0x860]
call fcn.005063f8
mov eax, dword [ebx + 0x85c]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x860]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x8bc]
call fcn.00565bb8
push eax
mov eax, dword [ebx + 0x8b8]
call fcn.00565bb8
mov cl, 1
pop edx
call fcn.00669fbc
push 0
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [0x8d4254]
mov eax, dword [eax]
mov ecx, 0x8661d4
mov edx, 0x8661f0
mov esi, dword [eax]
call dword [esi + 4]
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebx + 0x8c0]
call fcn.005063f8
mov eax, dword [ebx + 0x8b8]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x8bc]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8c0]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x8c4]
xor edx, edx
call fcn.005062a8
mov eax, dword [ebx + 0x8b0]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x8b4]
mov dl, 1
call fcn.005062a8
mov eax, dword [ebx + 0x884]
mov edx, dword [eax]
call dword [edx + 0x114]
mov eax, dword [ebx + 0x884]
mov eax, dword [eax + 0x2c4]
call fcn.00544b1c
test eax, eax
jle 0x865ec4
mov dword [0x8dc054], 0xffffffff
mov eax, dword [ebx + 0x884]
mov eax, dword [eax + 0x2d4]
mov edx, 2
call fcn.005437bc
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00864804
mov eax, dword [ebx + 0x884]
mov eax, dword [eax + 0x2d4]
mov edx, 2
call fcn.005437bc
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00864804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x865ef6
lea eax, [ebp - 0x28c]
mov edx, 0x15
call fcn.00409d8c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00409d8c
ret