Function at 0x40bd00
Capabilities:
Accept command line arguments
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x42c], eax
xor eax, eax
mov dword [ebp - 0x418], eax
test edi, edi
je 0x40bd35
test ebx, ebx
jne 0x40bd63
push 0x496e58
push 0x496e6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40bdc2
mov edi, 0x4bd8b0
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov ebx, eax
xor esi, esi
cmp dword [edi], esi
jle 0x40bdc2
xor eax, eax
mov dword [ebp - 0x418], eax
push 0x496e84
push dword [ebx + esi*4]
call fcn.0046f3d3
add esp, 8
test eax, eax
je 0x40bda0
push 0x496e9c
push dword [ebx + esi*4]
call fcn.0046f3d3
add esp, 8
test eax, eax
je 0x40bda0
inc esi
cmp esi, dword [edi]
jl 0x40bd71
jmp 0x40bdc2
mov eax, dword [edi]
dec eax
mov dword [ebp - 0x418], 1
cmp esi, eax
jge 0x40bdc0
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov eax, dword [edi]
dec eax
cmp esi, eax
jl 0x40bdb1
dec dword [edi]
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x20c]
mov ebx, dword [ebp - 0x418]
push esi
push 0x496ccc
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x424], 0
call fcn.0046f560
add esp, 0xc
mov edi, 1
cmp dword [ebp - 0x418], 0
jne 0x40bf4c
push esi
push 0x4970dc
lea eax, [ebp - 0x414]
push 0x497108
push eax
call fcn.0046f560
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x420]
add esp, 0x10
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x430], 0
push eax
push 0x101
push 0
push 0x4970dc
push reloc.WS2_32.dll_bind
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bea6
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 4
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push 0x496e3c
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x420]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40bea0
cmp dword [ebp - 0x430], esi
jne 0x40bf1b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 0x101
push 0
push 0x4970dc
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x428], 0
call edi
test eax, eax
jne 0x40bf25
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 4
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0x496e3c
push dword [ebp - 0x41c]
call esi
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40bf25
cmp dword [ebp - 0x428], esi
je 0x40bf25
mov eax, 1
jmp 0x40bfb7
lea eax, [ebp - 0x414]
push eax
push reloc.WS2_32.dll_accept
call fcn.0040b450
add esp, 8
test eax, eax
je 0x40bfb5
mov dword [ebp - 0x418], 1
mov edi, 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40bf93
push 4
lea eax, [ebp - 0x418]
push eax
push 4
push 0
push 0x496e3c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x418], 0
cmovne ebx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x40bf47
call fcn.0040b570
test eax, eax
je 0x40bfda
call fcn.0040b990
mov dword [ebp - 0x418], eax
jmp 0x40c261
call fcn.0040b630
test eax, eax
jne 0x40c26e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x40c26e
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x496d00
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
mov dword [edi], 0x80c808d0
mov ecx, 0x496d1c
mov dword [edi + 0xa], eax
lea edx, [edi + 0x16]
mov dword [edi + 0xe], 0xb40138
mov word [edi + 8], ax
sub edx, ecx
mov dword [edi + 0x12], eax
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c040
mov eax, 8
lea edx, [edi + 0x3c]
mov ecx, 0x496d40
mov word [edi + 0x3a], ax
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c063
lea eax, [edi + 0x59]
mov ecx, 0x1f6
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x496d60
mov dword [eax + 8], 0x30007
sub edx, ecx
mov dword [eax + 0xc], 0xe012a
mov dword [eax], 0x50000000
mov dword [esi], 0x82ffff
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40c0b0
xor eax, eax
mov ecx, 1
mov word [esi + 0x96], ax
lea eax, [esi + 0x9b]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x496df4
mov dword [eax + 8], 0x9f00c9
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
jmp 0x40c110
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x40c110
xor eax, eax
mov ecx, 2
mov word [esi + 0x12], ax
lea eax, [esi + 0x17]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x496e04
mov dword [eax + 8], 0x9f00ff
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x40c160
xor eax, eax
mov ecx, 0x1f5
mov word [esi + 0x16], ax
lea eax, [esi + 0x1b]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x496e18
mov dword [eax + 8], 0x9f0007
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x40c1b0
xor eax, eax
mov ecx, 0x1f4
mov word [esi + 0x12], ax
lea eax, [esi + 0x17]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
mov word [eax + 0x10], cx
mov ecx, 0x496e28
mov dword [eax + 8], 0xe0007
mov edx, esi
mov dword [eax + 0xc], 0x8c012a
mov dword [eax], 0x50a11844
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x40c200
mov ecx, 0x496e04
lea edx, [esi + 0x12]
sub edx, ecx
lea ebx, [ebx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x40c220
push dword [ebp - 0x42c]
xor eax, eax
push 0x40b230
push eax
push edi
mov word [esi + 0x24], ax
inc word [edi + 8]
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push edi
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40bf9d
jmp 0x40bf47
call fcn.0040b9f0
int3