Function at 0x42d840
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eba90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5299c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x42dab5
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x42d95d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [esi + 4]
call fcn.00412f10
lea eax, [esi + 0x60]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x296
push 0
push 0
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0x54], 0x10
lea eax, [esi + 0x40]
jb 0x42d8c4
mov eax, dword [eax]
push eax
push 0x5dd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [esi + 0x3c], 0x10
lea eax, [esi + 0x28]
jb 0x42d8de
mov eax, dword [eax]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x8107
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0x58]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x70], 0
je 0x42d920
push 0
push 0x258
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esi + 0x74], 0
je 0x42d93b
mov eax, dword [esi + 4]
push eax
push 0x8105
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x42da95
cmp dword [ebp + 0x10], 1
jne 0x42da73
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x428730
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [0x534910]
je 0x42d9aa
test eax, eax
je 0x42d9aa
mov edi, 1
jmp 0x42d9ac
xor edi, edi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42d9e3
test edi, edi
je 0x42d9e3
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x64]
push 0x56
push eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push eax
push 0
push 0
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x42da68
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x64]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x42
push eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push eax
push 0
mov eax, edi
xor eax, 1
push 0
sub eax, 2
push eax
push dword [esi + 4]
call ebx
mov dword [ebp + 0x10], 0x1e
test edi, edi
jne 0x42da68
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 8
jne 0x42da68
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x64]
push 0x42
push eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push eax
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x64]
push 0x42
push eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push eax
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 4]
call ebx
sub dword [ebp + 0x10], 1
jne 0x42da12
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x10
jne 0x42dacb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esi + 4]
jne 0x42daac
mov dword [esi + 0x78], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x111
jne 0x42dab5
movzx eax, word [ebp + 0x10]
mov ecx, 0x8105
cmp cx, ax
jne 0x42dbc9
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42db02
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push 0x534914
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x53492c]
mov dword [ebp - 4], 0
test edi, edi
jne 0x42db2b
call fcn.00427dc0
mov edi, eax
mov dword [0x53492c], edi
inc dword [0x534930]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x534914
call ebx
mov dword [ebp + 0x10], edi
sub esp, 0x28
mov dword [ebp - 4], 1
mov eax, esp
mov ecx, edi
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_bd44e345de8d8f75f962caa429d2512b___void___.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
call fcn.00430a80
test edi, edi
je 0x42da73
push 0x534914
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x534930]
test eax, eax
je 0x42dba0
sub eax, 1
mov dword [0x534930], eax
jne 0x42dba0
mov ecx, dword [0x53492c]
test ecx, ecx
je 0x42dba0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x53492c], 0
push 0x534914
call ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x8106
cmp cx, ax
jne 0x42dc0b
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x8107
cmp cx, ax
jne 0x42dab5
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18