Function at 0x404c30
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1764
call fcn.0042dad0
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x1764], edi
call ebx
mov ecx, dword [esi + 0x264]
push ecx
call ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, 0x14
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push 0x534
lea ecx, [ebp - 0x1750]
push 0
push ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], 0xca
call fcn.00423160
push edi
lea edx, [ebp - 0x1750]
push 0x29a
push edx
call fcn.004205b2
add esp, 0x18
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
call edi
mov ebx, eax
push ebx
call fcn.0041e128
add esp, 4
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x1758], eax
mov eax, dword [ebp - 0x1764]
push eax
push 0
push 0
call edi
mov ecx, dword [ebp - 0x1758]
push 0x7c
push ecx
call fcn.00420650
add esp, 8
test eax, eax
jne 0x40510b
push 0x208
push eax
lea edx, [ebp - 0xe0c]
push edx
mov dword [ebp - 0x1754], eax
call fcn.00423160
push 0x208
lea eax, [ebp - 0x121c]
push 0
push eax
call fcn.00423160
push 0x208
lea ecx, [ebp - 0x1014]
push 0
push ecx
call fcn.00423160
add esp, 0x24
lea edx, [ebp - 0x1754]
push edx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1760], 0x104
mov dword [ebp - 0x1758], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1760]
push eax
mov eax, dword [ebp - 0x1754]
lea ecx, [ebp - 0xe0c]
push ecx
lea edx, [ebp - 0x1758]
push edx
push 0
push 0x43ea8c
push eax
call ebx
test eax, eax
jne 0x4050e9
lea ecx, [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x1754]
lea edx, [ebp - 0x121c]
push edx
lea eax, [ebp - 0x1758]
push eax
push 0
push 0x43ea94
push ecx
call ebx
lea edx, [ebp - 0x1760]
push edx
mov edx, dword [ebp - 0x1754]
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1758]
push ecx
push 0
push 0x43ea9c
push edx
call ebx
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00423160
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xe0c]
push ecx
push 0
push 0
call edi
push 0
push 0
push eax
lea edx, [ebp - 0x404]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0xe0c]
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e60
sub eax, edx
lea ecx, [ebp - 0x404]
push ecx
mov edx, eax
call fcn.00402de0
add esp, 4
cmp byte [ebp - 0x404], 0
lea ebx, [ebp - 0x404]
je 0x404eaa
lea esp, [esp]
movzx edx, byte [ebx]
push edx
call fcn.00420adf
add esp, 4
test eax, eax
je 0x4050f6
inc ebx
cmp byte [ebx], 0
jne 0x404e90
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404eb3
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
sub eax, edx
push 0
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov dword [ebp - 0x175c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404ee4
sub ecx, dword [ebp - 0x175c]
push eax
push 0x451fd0
inc ecx
push ecx
lea eax, [ebp - 0x404]
push eax
push 0
push 0
call ebx
push 0x3ff
lea ecx, [ebp - 0xc03]
push 0
push ecx
mov byte [ebp - 0xc04], 0
call fcn.00423160
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x121c]
push edx
push 0
push 0
call edi
push 0
push 0
push eax
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x121c]
push ecx
push 0
push 0
call edi
lea eax, [ebp - 0xc04]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f60
sub eax, edx
lea edx, [ebp - 0xc04]
push edx
mov edx, eax
call fcn.00402de0
add esp, 4
lea eax, [ebp - 0xc04]
call fcn.00403d20
test al, al
je 0x4050f6
lea eax, [ebp - 0xc04]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f96
push 0
sub eax, edx
push 0
inc eax
push eax
lea eax, [ebp - 0xc04]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0xc04]
lea edx, [ecx + 1]
mov dword [ebp - 0x175c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404fc1
sub ecx, dword [ebp - 0x175c]
push eax
push 0x452a40
inc ecx
push ecx
lea eax, [ebp - 0xc04]
push eax
push 0
push 0
call ebx
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call fcn.00423160
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x1014]
push edx
push 0
push 0
call edi
push 0
push 0
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
push ecx
push 0
push 0
call edi
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
jmp 0x405040
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405040
sub eax, edx
lea edx, [ebp - 0x804]
push edx
mov edx, eax
call fcn.00402de0
add esp, 4
lea eax, [ebp - 0x804]
call fcn.00403d20
test al, al
je 0x4050f6
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405076
push 0
sub eax, edx
push 0
inc eax
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
call ebx
lea ecx, [ebp - 0x804]
mov edi, eax
lea eax, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4050a0
push edi
sub ecx, eax
push 0x4534b0
inc ecx
push ecx
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call ebx
mov edx, dword [ebp - 0x1754]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1764]
push eax
push 0x29a
push 0x4539e8
call fcn.004205b2
add esp, 0xc
jmp 0x405166
mov ecx, dword [ebp - 0x1754]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 8
push 0x4539e8
lea edx, [ebp - 0x1750]
push 0x43eaa4
push edx
call fcn.00404b60
push 0x451fd0
lea eax, [ebp - 0x1750]
push 0x43eaac
push eax
call fcn.00404b60
push 0x452a40
lea ecx, [ebp - 0x1750]
push 0x43eab4
push ecx
call fcn.00404b60
push 0x4534b0
lea edx, [ebp - 0x1750]
push 0x43eabc
push edx
call fcn.00404b60
add esp, 0x30
mov eax, dword [esi + 0x64]
mov byte [esi + 0x29], 0
cmp eax, 3
je 0x405179
mov eax, esi
call fcn.004045d0
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esi
call fcn.00403b30
mov edx, dword [esi + 0x264]
push 0x1770
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4051ee
cmp eax, 0x102
je 0x4051cc
cmp eax, 0xffffffff
jne 0x4050f6
mov eax, dword [esi + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 8
push 1
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x175c]
push eax
push 0
push esi
push 0x405240
push 0
push 0
call fcn.0042085e
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 8