Function at 0x6bc0a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x733628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14c]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14c]
push 0x5c
push ecx
call fcn.0070ecc0
inc eax
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x14c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x14c]
sub ecx, edx
push ecx
lea ecx, [ebp - 0x250]
push eax
push ecx
call fcn.0070ef20
add esp, 0x14
lea edx, [ebp - 0x10]
push esi
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareGravityRagnarokOnline
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x6bc259
mov al, byte [ebp - 0x11]
mov edi, str.RagPath
mov byte [ebp - 0x44], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x3c], esi
push ecx
push str.RagPath
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], esi
call fcn.0042f5f0
mov eax, dword [0x76cabc]
mov dword [ebp - 4], esi
cmp eax, 1
jne 0x6bc1fd
mov cl, byte [ebp - 0x11]
mov edi, str.SakrayPath
mov byte [ebp - 0x30], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x28], esi
push ecx
push str.SakrayPath
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], esi
call fcn.0042f5f0
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x6bc1fd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x6bc1f4
cmp al, 0xff
je 0x6bc1f4
dec al
mov byte [ecx], al
jmp 0x6bc1fd
push ecx
call fcn.006ffa16
add esp, 4
mov edx, dword [ebp - 0x40]
cmp edx, esi
jne 0x6bc209
mov edx, 0x7367f4
lea edi, [ebp - 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x6bc259
mov al, byte [ecx - 1]
test al, al
je 0x6bc24f
cmp al, 0xff
je 0x6bc24f
dec al
mov byte [ecx - 1], al
jmp 0x6bc259
dec ecx
push ecx
call fcn.006ffa16
add esp, 4
mov dword [ebx + 0xf48], esi
mov eax, 1
mov dword [ebx + 0x3700], esi
mov dword [ebx + 0x36d0], eax
lea edx, [ebp - 0x30]
mov dword [ebx + 0x1aa4], esi
mov dword [ebx + 0x36a4], eax
push edx
mov dword [ebx + 0x36ac], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x2a]
mov edx, dword [ebp - 0x28]
and ecx, 0xffff
and edx, 0xffff
lea edi, [ebx + 4]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8 + 9]
mov edx, dword [ebp - 0x26]
and edx, 0xffff
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 0x24]
and edx, 0xffff
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 0x30]
and edx, 0xff
imul edx, edx, 0x7bbdb000
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x2e]
and edx, 0xffff
imul edx, edx, 0x605adc00
sub ecx, edx
mov edx, dword [ebp - 0x22]
and edx, 0xffff
add ecx, edx
sub ecx, eax
xor eax, eax
mov dword [ebx + 0x1b84], ecx
mov byte [ebx + 0x3784], 1
mov dword [ebx + 0x1478], esi
mov dword [ebx + 0x148c], esi
mov dword [ebx + 0xf50], esi
mov dword [ebx + 0xf4c], esi
mov byte [ebx + 0x36e0], 1
mov dword [ebx + 0xf58], esi
mov dword [ebx + 0xf54], esi
mov dword [ebx + 0x36b0], esi
mov dword [ebx + 0x36b4], esi
mov dword [ebx + 0x36bc], esi
mov dword [ebx + 0x36c0], esi
mov dword [ebx + 0x36c4], esi
mov dword [ebx + 0xf44], esi
mov byte [ebx + 0xa70], 0
mov dword [ebx + 0x3788], esi
mov ecx, 0x276
mov dword [ebx], esi
rep stosd dword es:[edi], eax
mov eax, dword [0x7d70c8]
mov ecx, dword [0x7d70c4]
mov edx, eax
mov dword [ebp - 0x10], ecx
cmp eax, edx
mov dword [ebp - 0x1c], edx
je 0x6bc3c0
mov edx, eax
add eax, 0xc
mov edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add ecx, 0xc
cmp eax, edx
mov dword [ebp - 0x10], ecx
jne 0x6bc396
mov eax, dword [0x7d70c8]
mov dword [0x7d70c8], ecx
mov dword [ebx + 0x1498], esi
or edi, 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x159c], esi
mov dword [ebx + 0x15c4], edi
mov eax, 0x64
mov dword [ebx + 0x15c8], 1
mov dword [ebx + 0x15cc], eax
mov dword [ebx + 0x15d0], eax
mov dword [ebx + 0x15d4], edi
mov dword [ebx + 0x15d8], eax
lea eax, [ebx + 0x15a0]
push 0x7bd64c
push eax
call fcn.0070dea8
add esp, 8
mov ecx, ebx
call fcn.006ef420
mov ecx, ebx
call fcn.006f1f60
lea ecx, [ebx + 0x37e8]
push 0x7bd64c
push ecx
call fcn.0070dea8
mov dword [ebx + 0x3808], esi
mov dword [ebx + 0x380c], esi
mov dword [ebx + 0x3810], esi
mov dword [ebx + 0x3814], esi
mov dword [ebx + 0x3818], esi
mov dword [ebx + 0x381c], esi
mov dword [ebx + 0x3820], esi
mov dword [ebx + 0x3824], esi
mov dword [ebx + 0x3828], edi
mov dword [ebx + 0x382c], 1
mov eax, 0xf423f
mov dword [ebx + 0x3830], esi
mov dword [ebx + 0x3834], eax
mov dword [ebx + 0x3838], esi
mov dword [ebx + 0x383c], eax
mov dword [ebx + 0x3848], esi
mov dword [ebx + 0x384c], eax
mov eax, 0x64
mov dword [ebx + 0x3850], eax
mov dword [ebx + 0x3854], eax
mov dword [ebx + 0x3840], eax
mov dword [ebx + 0x3858], esi
mov dword [ebx + 0x3874], esi
mov dword [ebx + 0x3878], esi
mov dword [ebx + 0x387c], esi
mov dword [ebx + 0x3880], esi
mov dword [ebx + 0x3884], esi
mov dword [ebx + 0x3888], esi
mov dword [ebx + 0x3868], esi
mov dword [ebx + 0x386c], esi
mov dword [ebx + 0x3870], esi
mov dword [ebx + 0x385c], esi
lea edx, [ebx + 0x3890]
mov dword [ebx + 0x3860], esi
push 0x7925b4
mov dword [ebx + 0x3864], esi
push edx
mov dword [ebx + 0x38d8], edi
call fcn.0070dea8
mov eax, 0xf423f
add esp, 0x10
mov dword [ebx + 0x38b0], esi
mov dword [ebx + 0x38b4], esi
mov dword [ebx + 0x38b8], esi
mov dword [ebx + 0x38bc], esi
mov dword [ebx + 0x38c0], esi
mov dword [ebx + 0x38c4], esi
mov dword [ebx + 0x38c8], esi
mov dword [ebx + 0x38cc], esi
mov dword [ebx + 0x38dc], 1
mov dword [ebx + 0x38d0], esi
mov dword [ebx + 0x38e0], esi
mov dword [ebx + 0x38d4], eax
mov dword [ebx + 0x38e4], eax
mov dword [ebx + 0x38e8], esi
mov dword [ebx + 0x38ec], esi
mov dword [ebx + 0x38f0], esi
mov dword [ebx + 0x38f4], esi
mov dword [ebx + 0x38f8], esi
mov dword [ebx + 0x391c], esi
mov dword [ebx + 0x390c], esi
mov byte [ebx + 0x3920], 0
mov byte [ebx + 0x34fc], 0
mov byte [ebx + 0x3510], 0
mov dword [ebx + 0x3514], esi
mov dword [ebx + 0x3518], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x36fc], eax
lea eax, [ebx + 0x3938]
push 0x7bd64c
push eax
mov dword [ebx + 0x3934], esi
call fcn.0070dea8
mov dword [ebx + 0x3960], edi
mov dword [ebx + 0x3964], edi
mov edi, 0x7bd64c
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov byte [ebx + 0x3958], 0
mov dword [ebx + 0x395c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebx + 0x3970]
mov edi, ecx
push 1
push edi
mov ecx, edx
mov dword [ebp - 0x1c], edi
call fcn.004219f0
test al, al
je 0x6bc658
mov ecx, edi
mov edi, dword [ebx + 0x3974]
mov edx, ecx
mov esi, 0x7bd64c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3974]
mov dword [ebx + 0x3978], eax
xor esi, esi
mov byte [ecx + eax], 0
mov dword [ebx + 0x3980], esi
mov dword [ebx + 0x3984], esi
mov dword [ebx + 0x3988], esi
mov dword [ebx + 0x3968], esi
mov eax, 1
mov dword [ebx + 0x398c], esi
mov dword [ebx + 0x39c8], eax
mov dword [ebx + 0xa50], esi
mov dword [ebx + 0xa54], eax
mov dword [ebx + 0x39d0], esi
mov dword [ebx + 0x39d4], esi
mov dword [ebx + 0x39d8], esi
lea ecx, [ebx + 0xeb0]
mov dword [ebx + 0x39dc], esi
mov dword [ebx + 0x39e0], esi
mov eax, dword [ecx + 4]
push eax
mov edx, dword [eax]
push edx
lea edx, [ebp - 0x18]
push edx
call fcn.004bcfc0
mov eax, dword [ebx + 0xec4]
lea ecx, [ebx + 0xec0]
push eax
mov edx, dword [eax]
lea eax, [ebp - 0x48]
push edx
push eax
call fcn.004bcfc0
mov dword [ebx + 0x39e4], esi
mov ecx, ebx
mov dword [ebx + 0x3be4], 0xffffffff
call fcn.006f25b0
mov ecx, dword [ebx + 0x3c00]
mov edi, dword [ebx + 0x3bfc]
cmp ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
je 0x6bc771
jmp 0x6bc70c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [edi], edx
mov eax, dword [ecx + 4]
mov edx, ecx
mov dword [edi + 4], eax
sub edx, edi
lea eax, [edi + 8]
mov dword [ebp - 0x1c], edx
mov edx, 0xfffffff8
sub edx, edi
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x1c]
inc eax
mov dl, byte [edx + eax - 1]
mov byte [eax - 1], dl
mov edx, dword [ebp - 0x34]
add edx, eax
cmp edx, 0x50
jb 0x6bc72a
mov eax, dword [ecx + 0x58]
add ecx, 0x60
mov dword [edi + 0x58], eax
mov dx, word [ecx - 4]
push ecx
lea ecx, [edi + 0x60]
mov word [edi + 0x5c], dx
call fcn.00539ba0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add eax, 0xc0
add edi, 0xc0
cmp eax, ecx
mov dword [ebp - 0x10], eax
jne 0x6bc709
mov eax, dword [ebx + 0x3c00]
cmp edi, eax
mov dword [ebp - 0x18], eax
je 0x6bc7b1
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0041ed20
mov ecx, dword [ebp - 0x10]
call fcn.0041ed20
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add eax, 0xc0
mov dword [ebp - 0x10], eax
add eax, 0xffffff74
cmp eax, ecx
jne 0x6bc787
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x3c00], edi
mov dword [ebx + 0x3c08], esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret