Function at 0x401930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b43e0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
push edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401a1c
mov eax, dword [ebx + 0x4c]
xor esi, esi
xor edi, edi
cmp eax, esi
jne 0x401a2a
cmp byte [ebx + 0x48], 0
jne 0x401a23
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebx + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
test dword [ebp + 0x10], 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
lea edx, [esi + 1]
je 0x4019ba
xor edx, edx
mov edi, dword [ebx + 0x28]
lea ecx, [ebx + 0x74]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x4c]
push ecx
push edx
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x70]
lea esi, [ebx + 0x38]
push edi
mov edi, eax
mov ecx, esi
call fcn.00401370
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401b76
cmp byte [ebx + 0x48], al
jne 0x401b76
mov eax, dword [ebx + 0x3c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401a1c
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x401a1c
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x3c]
push ecx
push eax
push 0x4cc
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x401cfc
mov edi, 2
jmp 0x401a46
cmp eax, 1
jne 0x401a46
mov eax, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x401b7f
xor esi, esi
mov byte [ebp - 0x41], 0
cmp edi, 2
je 0x401a59
cmp byte [ebx + 0x48], 0
je 0x401cf9
lea eax, [ebx + 0x58]
push eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dword [ebp - 4], esi
cmp edi, 2
jne 0x401a74
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x50], edx
mov eax, dword [ebx]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x48]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
mov byte [ebx + 0x48], 1
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
call edx
cmp al, 1
jne 0x401c83
cmp dword [ebp - 0x48], esi
jne 0x401aa9
cmp dword [ebp - 0x4c], esi
je 0x401c83
mov eax, dword [ebx + 0x88]
lea esi, [ebx + 0x78]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], eax
cmp dword [esi + 0xc], eax
jbe 0x401ac2
call fcn.0048b3f2
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
cmp eax, dword [esi + 0x10]
jbe 0x401ad7
call fcn.0048b3f2
mov edi, dword [esi]
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], esi
test edi, edi
je 0x401aeb
cmp edi, dword [ebp - 0x74]
je 0x401af0
call fcn.0048b3f2
cmp esi, dword [ebp - 0x64]
je 0x401c81
test edi, edi
jne 0x401c5d
call fcn.0048b3f2
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401b12
call fcn.0048b3f2
mov ecx, dword [ebp - 0x50]
cmp dword [esi], ecx
jne 0x401b55
test edi, edi
jne 0x401c64
call fcn.0048b3f2
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401b32
call fcn.0048b3f2
mov edx, dword [ebp - 0x48]
cmp edx, dword [esi + 4]
je 0x401c72
lea esi, [ebp - 0x5c]
call fcn.00431c50
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax + 4]
je 0x401cef
mov esi, dword [ebp - 0x58]
test edi, edi
jne 0x401c6b
call fcn.0048b3f2
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401b6e
call fcn.0048b3f2
add esi, 0x24
jmp 0x401adf
cmp edi, 1
jne 0x401a44
test byte [ebp + 0x10], 2
je 0x401bca
mov edx, dword [esi]
xor eax, eax
lea ecx, [ebp - 0x40]
push ecx
push edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x38], 2
jne 0x401bca
mov eax, dword [esi]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x401bdb
mov eax, dword [eax + 4]
jmp 0x401bde
add eax, 4
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
push 0xbb8
push ecx
push eax
push edi
call fcn.00407280
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401c13
mov edx, dword [ebx]
mov eax, dword [ebp - 0x50]
mov edx, dword [edx + 0x14]
push edi
push eax
mov ecx, ebx
call edx
xor eax, eax
test esi, esi
setne al
jmp 0x401cfc
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x401c51
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebx + 0x3c]
push ecx
mov dword [ebx + 0x74], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401c51
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
test esi, esi
setne al
jmp 0x401cfc
mov eax, dword [edi]
jmp 0x401b08
mov eax, dword [edi]
jmp 0x401b28
mov eax, dword [edi]
jmp 0x401b64
push esi
mov esi, dword [ebp - 0x68]
push edi
lea edi, [ebp - 0x74]
call fcn.00402290
jmp 0x401cef
xor esi, esi
mov byte [ebp - 0x41], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], edx
call fcn.00403290
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x38]
push edx
lea edi, [ebx + 0x78]
mov dword [ebp - 0x38], ecx
call fcn.004021f0
cmp dword [ebx + 0x44], esi
jne 0x401cdd
mov eax, dword [ebx + 4]
push esi
push 0x1f4
push 0x64
push eax
mov dword [ebx + 0x40], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
cmp dword [ebp - 0x18], 0x10
jb 0x401cef
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00480ff0
add esp, 4
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret 0xc