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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1764
call fcn.0042d850
mov eax, dword [0x445824]
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.00422ed0
push edi
lea edx, [ebp - 0x1750]
push 0x29a
push edx
call fcn.00420322
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.0041de98
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.004203c0
add esp, 8
test eax, eax
jne 0x40513b
push 0x208
push eax
lea edx, [ebp - 0xe0c]
push edx
mov dword [ebp - 0x1754], eax
call fcn.00422ed0
push 0x208
lea eax, [ebp - 0x121c]
push 0
push eax
call fcn.00422ed0
push 0x208
lea ecx, [ebp - 0x1014]
push 0
push ecx
call fcn.00422ed0
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 0x43da8c
push eax
call ebx
test eax, eax
jne 0x405119
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 0x43da94
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 0x43da9c
push edx
call ebx
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00422ed0
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 0x404e90
sub eax, edx
lea ecx, [ebp - 0x404]
push ecx
mov edx, eax
call fcn.00403da0
add esp, 4
cmp byte [ebp - 0x404], 0
lea ebx, [ebp - 0x404]
je 0x404eda
lea esp, [esp]
movzx edx, byte [ebx]
push edx
call fcn.0042084f
add esp, 4
test eax, eax
je 0x405126
inc ebx
cmp byte [ebx], 0
jne 0x404ec0
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ee3
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 0x404f14
sub ecx, dword [ebp - 0x175c]
push eax
push 0x450fd0
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.00422ed0
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 0x404f90
sub eax, edx
lea edx, [ebp - 0xc04]
push edx
mov edx, eax
call fcn.00403da0
add esp, 4
lea eax, [ebp - 0xc04]
call fcn.00403e20
test al, al
je 0x405126
lea eax, [ebp - 0xc04]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fc6
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 0x404ff1
sub ecx, dword [ebp - 0x175c]
push eax
push 0x451a40
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.00422ed0
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 0x405070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405070
sub eax, edx
lea edx, [ebp - 0x804]
push edx
mov edx, eax
call fcn.00403da0
add esp, 4
lea eax, [ebp - 0x804]
call fcn.00403e20
test al, al
je 0x405126
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050a6
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 0x4050d0
push edi
sub ecx, eax
push 0x4524b0
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 0x4529e8
call fcn.00420322
add esp, 0xc
jmp 0x405196
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.0041fa5e
mov esp, ebp
pop ebp
ret 8
push 0x4529e8
lea edx, [ebp - 0x1750]
push 0x43daa4
push edx
call fcn.00402de0
push 0x450fd0
lea eax, [ebp - 0x1750]
push 0x43daac
push eax
call fcn.00402de0
push 0x451a40
lea ecx, [ebp - 0x1750]
push 0x43dab4
push ecx
call fcn.00402de0
push 0x4524b0
lea edx, [ebp - 0x1750]
push 0x43dabc
push edx
call fcn.00402de0
add esp, 0x30
mov eax, dword [esi + 0x64]
mov byte [esi + 0x29], 0
cmp eax, 3
je 0x4051a9
mov eax, esi
call fcn.004046d0
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esi
call fcn.00403bb0
mov edx, dword [esi + 0x264]
push 0x1770
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40521e
cmp eax, 0x102
je 0x4051fc
cmp eax, 0xffffffff
jne 0x405126
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.0041fa5e
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.0041fa5e
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 0x405270
push 0
push 0
call fcn.004205ce
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.0041fa5e
mov esp, ebp
pop ebp
ret 8