Function at 0x402a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6041fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [ebp - 0x220]
call fcn.00402f4a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x60ef48]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x60e7b8]
cmp eax, dword [esi + 4]
jg 0x402d72
mov eax, dword [0x60e7d8]
cmp eax, dword [esi + 4]
jg 0x402dc4
mov eax, dword [0x60e7bc]
mov ecx, 0x60e7bc
call dword [eax + 0xc]
push str.HaoKaIic.dll
add eax, 0x10
push str.HaoKanWp
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push 0x58da30
push eax
call fcn.00402900
mov esi, dword [ebp - 0x210]
lea ecx, [ebp - 0x220]
add esp, 0x10
push esi
call fcn.00402f9f
lea ecx, [ebp - 0x220]
call fcn.0040300b
test eax, eax
je 0x402b49
mov edi, 1
jmp 0x402d3b
mov esi, dword [0x60e864]
test esi, esi
jne 0x402bb2
push 0x60e868
call fcn.0042d083
add esp, 4
test eax, eax
je 0x402b6d
push eax
call fcn.0042d17c
add esp, 4
mov esi, dword [0x60e864]
test esi, esi
jne 0x402b98
push 0x18
call fcn.00475324
add esp, 4
test eax, eax
je 0x402b90
mov ecx, eax
call fcn.0040548c
mov esi, eax
jmp 0x402b92
xor esi, esi
mov dword [0x60e864], esi
push 0x60e868
call fcn.0042d0a8
add esp, 4
test eax, eax
je 0x402bb2
push eax
call fcn.0042d17c
add esp, 4
push 0x1388
sub esp, 0x18
mov ecx, esp
push str.SoftResHaoKanWP
call fcn.00401830
push edi
mov ecx, esi
call fcn.0040674f
mov esi, dword [0x60e830]
test esi, esi
jne 0x402c3a
push 0x60e834
call fcn.0042d083
add esp, 4
test eax, eax
je 0x402bf2
push eax
call fcn.0042d17c
add esp, 4
mov esi, dword [0x60e830]
test esi, esi
jne 0x402c20
push 0x9c
call fcn.00475324
add esp, 4
test eax, eax
je 0x402c18
mov ecx, eax
call fcn.00412cfa
mov esi, eax
jmp 0x402c1a
xor esi, esi
mov dword [0x60e830], esi
push 0x60e834
call fcn.0042d0a8
add esp, 4
test eax, eax
je 0x402c3a
push eax
call fcn.0042d17c
add esp, 4
push 1
push 0
push edi
mov ecx, esi
call fcn.00412e03
mov esi, dword [0x60e7e4]
test esi, esi
jne 0x402caf
push 0x60e7e8
call fcn.0042d083
add esp, 4
test eax, eax
je 0x402c6a
push eax
call fcn.0042d17c
add esp, 4
mov esi, dword [0x60e7e4]
test esi, esi
jne 0x402c95
push 0x3c
call fcn.00475324
add esp, 4
test eax, eax
je 0x402c8d
mov ecx, eax
call fcn.00414ce8
mov esi, eax
jmp 0x402c8f
xor esi, esi
mov dword [0x60e7e4], esi
push 0x60e7e8
call fcn.0042d0a8
add esp, 4
test eax, eax
je 0x402caf
push eax
call fcn.0042d17c
add esp, 4
push 0
push 0
mov ecx, esi
call fcn.00415370
call fcn.00413971
push 0
call fcn.00403316
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push 0
push 0x58d958
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d33
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402d33
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x210]
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402d53
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x220]
call fcn.00402f54
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004755fc
mov esp, ebp
pop ebp
ret 0x10
push 0x60e7b8
call fcn.0047578e
add esp, 4
cmp dword [0x60e7b8], 0xffffffff
jne 0x402ad9
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x58b440
mov dword [0x60e7ac], 0x58d944
mov dword [0x60e7b0], eax
mov byte [0x60e7b4], 0
call fcn.004755e7
push 0x60e7b8
call fcn.00475744
add esp, 8
jmp 0x402ad9
push 0x60e7d8
call fcn.0047578e
add esp, 4
cmp dword [0x60e7d8], 0xffffffff
jne 0x402aea
xor eax, eax
mov dword [0x60e7bc], 0x58d928
push 0x58b470
mov dword [0x60e7c0], 0x60e7ac
mov dword [0x60e7d0], 2
mov dword [0x60e7c8], 0
mov dword [0x60e7cc], 0
mov dword [0x60e7d4], eax
mov dword [0x60e7c4], 0x60e7bc
call fcn.004755e7
push 0x60e7d8
call fcn.00475744
add esp, 8
jmp 0x402aea