Function at 0x502bf4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x502bfc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x503199
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x503167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.005032ac
mov dl, 1
mov eax, dword [0x419d20]
call fcn.00404238
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], ebx
mov eax, ebx
mov dl, 1
call fcn.0041ecfc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov byte [eax + 0x25], 1
xor ecx, ecx
mov dl, 2
mov eax, 0x5031b0
call fcn.004f62ec
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 3
jge 0x502c92
mov byte [ebp - 0x25], 0
call fcn.004077cc
mov byte [eax + 0x24], 1
call fcn.004077cc
mov byte [eax + 0x25], 0
mov byte [ebp - 0x2d], 1
jmp 0x502cc0
mov eax, dword [0x5430c8]
cmp byte [eax], 0
je 0x502e9d
mov byte [ebp - 0x25], 1
call fcn.004077cc
mov byte [eax + 0x24], 0
call fcn.004077cc
mov byte [eax + 0x25], 1
mov byte [ebp - 0x2d], 2
mov eax, dword [ebp - 0x20]
and eax, 0x80000001
jns 0x502ccf
dec eax
or eax, 0xfffffffe
inc eax
dec eax
jne 0x502cdf
mov byte [ebp - 0x26], 1
mov dword [ebp - 0x2c], 0x80000001
jmp 0x502cea
mov byte [ebp - 0x26], 0
mov dword [ebp - 0x2c], 0x80000002
mov dl, 1
mov eax, dword [0x419d20]
call fcn.00404238
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x502e89
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, 0x5031e4
mov eax, dword [ebp - 0x2c]
call fcn.004359fc
test al, al
je 0x502e73
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x502e73
inc ebx
xor esi, esi
lea ecx, [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 8]
call fcn.0040a024
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 8]
call fcn.004f62ec
cmp dword [ebp - 8], 0
je 0x502e6b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov edx, 0x5031e4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
call fcn.00434ed0
test al, al
je 0x502e6b
cmp dword [ebp - 0xc], 0
je 0x502e6b
cmp dword [ebp - 0x24], 1
je 0x502da8
cmp dword [ebp - 0x24], 2
jne 0x502e6b
lea ecx, [ebp - 0x10]
movzx edx, byte [ebp - 0x2d]
mov eax, dword [ebp - 0xc]
call fcn.00442d00
test al, al
je 0x502e6b
mov dl, 1
mov eax, dword [0x4464dc]
call fcn.00404238
mov edi, eax
mov byte [edi + 4], 0
movzx eax, byte [ebp - 0x26]
mov byte [edi + 5], al
lea eax, [edi + 6]
call fcn.004051a4
xor eax, eax
mov dword [edi + 0xa], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x12], eax
mov edx, 0x5031e4
lea eax, [edi + 0x16]
call fcn.004051f8
lea eax, [edi + 0x1a]
mov edx, dword [ebp - 8]
call fcn.004051f8
movzx eax, byte [ebp - 0x25]
mov byte [edi + 0x1e], al
cmp dword [ebp - 0x24], 2
sete al
mov byte [edi + 0x1f], al
lea eax, [edi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.004051f8
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.0040af84
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409a64
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x10]
call fcn.0040523c
cmp dword [ebp - 0x10], 0
je 0x502e58
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x502e5f
mov eax, edi
call fcn.00404268
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 0x10]
call fcn.004f62ec
inc esi
dec ebx
jne 0x502d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502e90
mov eax, dword [ebp - 0x18]
call fcn.00404268
ret
xor ecx, ecx
mov dl, 2
mov eax, 0x50321c
call fcn.004f62ec
mov dl, 1
mov eax, dword [0x419d20]
call fcn.00404238
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x503156
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 2
mov eax, 0x503250
call fcn.004f62ec
lea eax, [ebp - 0x40]
call fcn.0043a87c
lea eax, [ebp - 0x40]
mov edx, 0x503270
call fcn.0040548c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x1c]
xor ecx, ecx
call fcn.00443fc4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x503000
inc ebx
xor esi, esi
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 8]
call fcn.0040a024
cmp dword [ebp - 8], 0
je 0x502ff8
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004f502c
push dword [ebp - 8]
push 0x503280
push dword [ebp - 0xc]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00405554
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov dl, 2
call fcn.004f62ec
cmp dword [ebp - 0xc], 0
je 0x502ff8
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00442d00
test al, al
je 0x502ff8
mov dl, 1
mov eax, dword [0x4464dc]
call fcn.00404238
mov edi, eax
mov byte [edi + 4], 1
mov byte [edi + 5], 1
lea eax, [edi + 0xe]
mov edx, dword [ebp - 8]
call fcn.004051f8
lea eax, [edi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.004051f8
mov byte [edi + 0x1f], 0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.0040af84
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00409a64
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
call fcn.0040523c
cmp dword [ebp - 0x10], 0
je 0x502fe5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x502fec
mov eax, edi
call fcn.00404268
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 0x10]
call fcn.004f62ec
inc esi
dec ebx
jne 0x502f0e
xor ecx, ecx
mov dl, 2
mov eax, 0x503290
call fcn.004f62ec
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x54]
call fcn.0043a9bc
lea eax, [ebp - 0x54]
mov edx, 0x503270
call fcn.0040548c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x1c]
xor ecx, ecx
call fcn.00443fc4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x503140
inc ebx
xor esi, esi
lea ecx, [ebp - 0x58]
mov edx, esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 8]
call fcn.0040a024
cmp dword [ebp - 8], 0
je 0x503138
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004f502c
push dword [ebp - 8]
push 0x503280
push dword [ebp - 0xc]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00405554
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov dl, 2
call fcn.004f62ec
cmp dword [ebp - 0xc], 0
je 0x503138
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00442d00
test al, al
je 0x503138
mov dl, 1
mov eax, dword [0x4464dc]
call fcn.00404238
mov edi, eax
mov byte [edi + 4], 1
mov byte [edi + 5], 0
lea eax, [edi + 0xe]
mov edx, dword [ebp - 8]
call fcn.004051f8
lea eax, [edi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.004051f8
mov byte [edi + 0x1f], 0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x10]
call fcn.0040af84
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00409a64
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x10]
call fcn.0040523c
cmp dword [ebp - 0x10], 0
je 0x503125
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x50312c
mov eax, edi
call fcn.00404268
xor ecx, ecx
mov dl, 2
mov eax, dword [ebp - 0x10]
call fcn.004f62ec
inc esi
dec ebx
jne 0x50304e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50315d
mov eax, dword [ebp - 0x1c]
call fcn.00404268
ret