Function at 0x403720
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x429143
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x4362ac]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp + 0x44], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp + 0x20], eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x6c], 0xf
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], bl
mov byte [ebp - 4], 2
lea edi, [ebp + 0x40]
mov dword [ebp + 0x40], ebx
call fcn.004044d0
cmp eax, ebx
jge 0x403797
cmp eax, 0x80004002
je 0x403797
push eax
call fcn.004167a0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x40]
cmp eax, ebx
jne 0x4037ac
push 0x80004003
call fcn.004167a0
mov dword [ebp + 0x4c], eax
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4037d0
mov ebx, eax
call fcn.004051f0
mov esi, eax
mov dword [ebp + 0x50], esi
test esi, esi
jne 0x4037d7
push 0x8007000e
call fcn.004057d0
xor esi, esi
mov dword [ebp + 0x50], esi
jmp 0x4037d9
xor ebx, ebx
mov eax, dword [ebp + 0x44]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x34]
cmp eax, ebx
je 0x403801
mov ebx, eax
call fcn.004051f0
mov edi, eax
mov dword [ebp], edi
test edi, edi
jne 0x403808
push 0x8007000e
call fcn.004057d0
xor edi, edi
mov dword [ebp], edi
jmp 0x40380a
xor ebx, ebx
mov eax, dword [ebp + 0x4c]
lea edx, [ebp + 0x48]
push edx
push esi
mov byte [ebp - 4], 5
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp + 0x4c], eax
call edi
push esi
mov byte [ebp - 4], 3
call edi
cmp dword [ebp + 0x4c], ebx
jge 0x4038b6
push 0x21
push 0x42c79c
lea ecx, [ebp + 0x54]
call fcn.00405320
cmp dword [ebp + 0x6c], 0x10
mov esi, dword [ebp + 0x58]
jae 0x403852
lea esi, [ebp + 0x58]
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx + 4]
push 0x3ed
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x40]
cmp eax, ebx
je 0x40387f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 0x6c], 0x10
jb 0x403891
mov eax, dword [ebp + 0x58]
push eax
call fcn.00416928
add esp, 4
mov ecx, dword [ebp + 0x48]
push ecx
mov dword [ebp + 0x6c], 0xf
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], bl
call edi
cmp dword [ebp + 0x20], ebx
jl 0x4038af
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x403c94
mov edx, dword [ebp + 0x44]
cmp dword [edx + 0x30], 1
mov edx, str.SOFTWAREBCServer
je 0x4038c9
mov edx, str.SOFTWAREBCClient
mov edi, 0xf
mov eax, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4038e0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00405320
mov eax, dword [ebp - 0x24]
mov esi, 0x10
mov dword [ebp + 0x50], ebx
cmp dword [ebp - 0x10], esi
jae 0x403906
lea eax, [ebp - 0x24]
push ebx
lea ecx, [ebp + 0x50]
push ecx
push ebx
push 0x20006
push ebx
push 0x42c8d8
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x10], esi
jb 0x403939
mov edx, dword [ebp - 0x24]
push edx
call fcn.00416928
add esp, 4
mov ecx, dword [ebp + 0x48]
lea eax, [ebp - 0xfc]
push 3
mov dword [ebp - 0x100], eax
push ecx
lea eax, [ebp - 0x100]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00405110
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x100]
mov eax, edx
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403977
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x24]
call fcn.00405320
lea edx, [ebp + 0x24]
push edx
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00401180
mov dword [ebp + 0x4c], eax
lea eax, [ebp + 0x54]
push eax
mov edi, 0x42c7c0
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.004048f0
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 0xa
cmp dword [ecx + 0x18], 0x10
jb 0x4039c7
mov edi, dword [ecx + 4]
jmp 0x4039ca
lea edi, [ecx + 4]
push eax
lea esi, [ebp - 0x7c]
call fcn.004048f0
push eax
mov edi, 0x42c51c
lea esi, [ebp + 4]
mov byte [ebp - 4], 0xb
call fcn.004048f0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.004056c0
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x403a0e
mov ecx, dword [ebp + 8]
push ecx
call fcn.00416928
add esp, 4
mov edi, 0xf
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp - 0x64], esi
jb 0x403a2d
mov edx, dword [ebp - 0x78]
push edx
call fcn.00416928
add esp, 4
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
cmp dword [ebp - 0x48], esi
jb 0x403a47
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00416928
add esp, 4
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
cmp dword [ebp - 0x2c], esi
jb 0x403a61
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00416928
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
cmp dword [ebp + 0x3c], esi
jb 0x403a7b
mov edx, dword [ebp + 0x28]
push edx
call fcn.00416928
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0xfc]
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp eax, ecx
je 0x403aa1
push eax
call fcn.004170c3
add esp, 4
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0x24]
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x50], ebx
je 0x403ba4
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x4c], eax
cmp eax, ebx
jne 0x403acc
xor esi, esi
jmp 0x403b03
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x403adf
xor esi, esi
jmp 0x403b03
lea esi, [eax + eax]
mov eax, esi
call fcn.0041aba0
mov eax, dword [ebp + 0x4c]
mov edi, esp
mov ecx, esi
mov edx, 3
mov esi, edi
call fcn.00405010
mov esi, eax
mov edi, 0xf
mov ecx, esi
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x403b11
sub ecx, edx
push ecx
push esi
lea ecx, [ebp + 4]
call fcn.00405320
mov byte [ebp - 4], 0xd
push 8
push str.PatchVer
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
call fcn.00405320
mov esi, 0x10
cmp dword [ebp + 0x50], ebx
je 0x403b73
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x403b55
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], esi
jae 0x403b60
lea eax, [ebp + 0x28]
mov edx, dword [ebp + 0x18]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 0x3c], esi
jb 0x403b84
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.00416928
add esp, 4
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x1c], esi
jb 0x403c1c
mov edx, dword [ebp + 8]
push edx
call fcn.00416928
add esp, 4
jmp 0x403c1c
lea eax, [ebp + 0x54]
push eax
mov edi, 0x42c7f0
lea esi, [ebp - 0x44]
call fcn.004048f0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xe
call fcn.004056c0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c], 0x10
jb 0x403bde
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00416928
add esp, 4
lea edx, [ebp + 0x54]
push edx
mov edi, 0x42c858
lea esi, [ebp - 0x44]
call fcn.004048f0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xf
call fcn.004056c0
cmp dword [ebp - 0x2c], 0x10
jb 0x403c14
mov eax, dword [ebp - 0x40]
push eax
call fcn.00416928
add esp, 4
mov esi, 0x10
lea edi, [esi - 1]
mov eax, dword [ebp + 0x50]
cmp eax, ebx
je 0x403c2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x6c], esi
mov esi, dword [ebp + 0x58]
jae 0x403c35
lea esi, [ebp + 0x58]
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx + 4]
push 0x3ed
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x40]
cmp eax, ebx
je 0x403c62
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 0x6c], 0x10
jb 0x403c74
mov eax, dword [ebp + 0x58]
push eax
call fcn.00416928
add esp, 4
mov ecx, dword [ebp + 0x48]
push ecx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x58], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 0x20], ebx
jl 0x403c92
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
lea esp, [ebp - 0x110]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00416933
add ebp, 0x74
mov esp, ebp
pop ebp
ret