Function at 0x438970
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0xa4], 1
call fcn.004418c0
test eax, eax
je 0x438998
push 0
mov ecx, esi
call fcn.00438fa0
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.user32.dll_IsZoomed]
test eax, eax
je 0x4389b2
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esi + 0xc]
push 2
push edx
call fcn.00442bd0
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0x28
push ecx
push eax
call fcn.00442cd0
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
mov ebp, eax
sub eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x98]
mov ebx, ecx
sub ecx, edi
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0x14f
jne 0x438a25
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x438a2d
mov dword [esp + 0x50], 0x1cc
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xbc]
push edx
push eax
mov dword [esp + 0xc4], 0x2c
call dword [sym.imp.user32.dll_GetWindowPlacement]
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xdc]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
add edx, ecx
add eax, ebp
mov dword [esp + 0x40], edx
cdq
sub eax, edx
mov edi, eax
lea eax, [ecx + ebx]
cdq
mov ecx, dword [0x4ee264]
sub eax, edx
mov ebx, eax
lea eax, [esp + 0x44]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
sar edi, 1
sar ebx, 1
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438b1f
lea edx, [esp + 0x1c]
lea eax, [esp + 0x90]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0x4efe5c
push edx
mov dword [esp + 0x34], 0x2c
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x438b1f
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x3c], ecx
lea eax, [ecx + edx]
mov dword [esp + 0x40], ebp
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xb8]
add eax, ebp
mov ebp, dword [esp + 0x2c]
cdq
sub eax, edx
mov ebx, eax
sar edi, 1
sar ebx, 1
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x44]
mov ecx, 0x1cc
cmp eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x96
jge 0x438c71
test eax, eax
jl 0x438c71
mov edx, dword [esi + 0x40]
mov ebp, dword [edx + eax*4]
test ebp, ebp
je 0x438c6d
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00454890
test eax, eax
je 0x438c69
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x38], ecx
mov ecx, ebp
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x3c], edx
call fcn.00454890
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [esp + 0x34]
fadd qword [0x4d8970]
call fcn.004c836c
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x20], ecx
mov ecx, ebp
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x24], edx
call fcn.004548f0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [esp + 0x1c]
fadd qword [0x4d8970]
call fcn.004c836c
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0043c000
mov ecx, esi
mov ebp, eax
call fcn.0043bfc0
mov ecx, dword [esp + 0x1c]
add ecx, ebp
lea edx, [eax + ecx + 2]
cmp edx, 0x7d00
jle 0x438bf8
mov ecx, 0x7d00
jmp 0x438c12
mov ecx, esi
call fcn.0043c000
mov ecx, esi
mov ebp, eax
call fcn.0043bfc0
mov ecx, dword [esp + 0x1c]
add ecx, ebp
lea ecx, [eax + ecx + 2]
mov eax, dword [esp + 0x34]
add eax, 2
cmp eax, 0x7d00
jle 0x438c25
mov eax, 0x7d00
push ecx
push eax
push 0
lea ecx, [esp + 0x64]
push 0
push ecx
call dword [sym.imp.user32.dll_SetRect]
mov edx, dword [0x4fb910]
lea eax, [esp + 0x58]
push edx
push 0xcf0000
push eax
call dword [sym.imp.user32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
cmp edx, ecx
mov eax, edx
jg 0x438c7d
mov eax, ecx
cmp dword [esp + 0x48], eax
jge 0x438c8d
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
jmp 0x438c95
cmp edx, ecx
jle 0x438c99
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jge 0x438ca9
mov eax, 0xc8
mov edx, dword [esp + 0x4c]
cmp edx, eax
jge 0x438cb7
mov dword [esp + 0x14], edx
jmp 0x438cc8
mov edx, dword [esp + 0x14]
mov eax, 0xc8
cmp edx, eax
jge 0x438cc8
mov dword [esp + 0x14], eax
mov eax, dword [0x4fb8e8]
test eax, eax
je 0x438ce7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
jmp 0x438cef
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edx, [edi + ecx]
cmp edx, ebp
jle 0x438cfa
sub ebp, ecx
mov edi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
lea edx, [ebx + ecx]
cmp edx, eax
jle 0x438d0d
sub eax, ecx
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x438d17
mov edi, eax
mov eax, dword [esp + 0x28]
cmp ebx, eax
jge 0x438d21
mov ebx, eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.user32.dll_IsZoomed]
test eax, eax
je 0x438d3b
mov ecx, dword [esi + 0xc]
push 5
push ecx
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
push 0x114
push edx
push eax
push ebx
push edi
push 0
push ecx
call dword [sym.imp.user32.dll_SetWindowPos]
mov edx, dword [esi + 0xc]
push 4
push edx
call dword [sym.imp.user32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret