Function at 0x494320
Capabilities:
Access peb ldr_data
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x57cd58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 1
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push edi
mov byte [esp + 0x30], 2
call fcn.004945a0
cmp esi, 0x193
lea eax, [esp + 0x18]
jne 0x4943db
push 0x59af68
mov ebx, 0x1c
call fcn.00410570
push 0x59afa4
mov ebx, 0x12
lea eax, [esp + 0x18]
call fcn.00410570
push 0x59afcc
jmp 0x494402
push 0x59afd8
mov ebx, 0x1a
call fcn.00410570
push 0x59afa4
mov ebx, 0x12
lea eax, [esp + 0x18]
call fcn.00410570
push str._nN_OgqGr
mov ebx, 4
lea eax, [esp + 0x20]
call fcn.00410570
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp eax, 0x58c320
je 0x49443e
mov ecx, dword [edi + 0x400]
push 0x58c320
push ecx
call esi
mov edx, dword [edi + 0x400]
push 0
push edx
call ebx
xor eax, eax
cmp eax, 0x58c320
je 0x494460
mov ecx, dword [edi + 0x480]
push 0x58c320
push ecx
call esi
mov edx, dword [edi + 0x480]
push 0
push edx
call ebx
mov esi, dword [esp + 0x14]
test esi, esi
lea eax, [edi + 0x3f0]
jne 0x494472
xor ecx, ecx
jmp 0x494486
mov ecx, esi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x494477
sub ecx, ebx
sar ecx, 1
push esi
mov ebx, ecx
call fcn.00410570
mov ebp, dword [esp + 0x18]
test ebp, ebp
lea eax, [edi + 0x470]
jne 0x4944a0
xor ecx, ecx
jmp 0x4944b4
mov ecx, ebp
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4944a5
sub ecx, esi
sar ecx, 1
push ebp
mov ebx, ecx
call fcn.00410570
lea esi, [edi + 0x24]
push ebp
mov ecx, 0x66
mov eax, esi
call fcn.0046ea90
mov ebx, dword [esp + 0x14]
push ebx
mov ecx, 0x68
mov eax, esi
call fcn.0046ea90
push ebx
mov ecx, 0x6e
mov eax, esi
call fcn.0046ea90
mov eax, dword [edi + 0x3c8]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi + 0x448]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [esp + 0x1c]
push edi
mov ecx, 0x6c
mov eax, esi
call fcn.0046ea90
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49453e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49455f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret