Function at 0x40bc99
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45501d
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x46ae30]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x46ae30]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x34]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.0041eea3
cmp dword [esp + 0x18], esi
je 0x40c19d
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40c19d
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push ecx
call dword [eax + 0xa0]
test eax, eax
jne 0x40c19d
push dword [esp + 0x20]
lea ecx, [esp + 0x90]
call fcn.0040b108
lea ecx, [esp + 0x24]
mov dword [esp + 0x180], esi
call fcn.0040c809
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x180], 1
call fcn.0041a3cd
lea edx, [edi + 4]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x180], 2
call fcn.0041a3cd
mov byte [esp + 0x180], 3
cmp dword [esp + 0xd0], 8
push dword [esp + 0xcc]
lea eax, [esp + 0xc0]
cmovae eax, dword [esp + 0xc0]
push eax
push dword [esp + 0xec]
push ecx
lea ecx, [esp + 0xe4]
call fcn.00404f4d
test eax, eax
jne 0x40c0c6
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xa4]
call fcn.0041a441
mov byte [esp + 0x180], 4
cmp dword [0x46c610], 8
push dword [0x46c60c]
mov eax, 0x46c5fc
cmovae eax, dword [0x46c5fc]
push eax
push dword [esp + 0xbc]
push ecx
lea ecx, [esp + 0xb4]
call fcn.00404f4d
test eax, eax
je 0x40be64
push 7
push esi
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb0]
call fcn.0040c704
mov edx, str.resize
mov ecx, eax
mov byte [esp + 0x180], 5
call fcn.0040cb78
push esi
push 1
lea ecx, [esp + 0x7c]
mov bl, al
mov byte [esp + 0x188], 4
call fcn.00401385
test bl, bl
je 0x40be4f
push esi
mov ecx, edi
call fcn.0040c3bc
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xac]
push eax
mov ecx, 0x46c5fc
call fcn.0040afd5
cmp byte [edi + 0x38], 0
jne 0x40c09a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x58]
mov dword [esp + 0x6c], esi
xor eax, eax
mov esi, str.complete
push esi
mov dword [esp + 0x74], 7
mov word [esp + 0x60], ax
call fcn.0043aa35
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.0040b068
mov byte [esp + 0x180], 6
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
call fcn.00404c09
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x64]
mov bl, al
mov byte [esp + 0x188], 4
call fcn.00401385
push dword [esp + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40c09a
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb al, al
inc al
movzx eax, al
push eax
mov ecx, edi
call fcn.0040c3bc
push 7
pop ebx
test al, al
jne 0x40bf9c
mov dword [esp + 0x84], esi
xor eax, eax
mov esi, str.LoginDialog::checkStatus__:_adjustWindowSize___returned_false
push esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x78], ax
call fcn.0043aa35
pop ecx
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.0040b068
mov byte [esp + 0x180], bl
and dword [esp + 0x6c], 0
xor eax, eax
mov esi, str.ERROR
push esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x60], ax
call fcn.0043aa35
pop ecx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.0040b068
lea edx, [esp + 0x74]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x180], 8
call fcn.0040e158
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00401385
push 0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x188], 4
call fcn.00401385
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [edi + 0x34]
call esi
push 5
push eax
call esi
push 5
push eax
call esi
mov esi, eax
push 0x40
lea eax, [esp + 0xf0]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
and dword [esp + 0x84], 0
xor eax, eax
mov dword [esp + 0x88], ebx
mov word [esp + 0x74], ax
cmp word [esp + 0xec], ax
je 0x40bff4
lea eax, [esp + 0xec]
push eax
call fcn.0043aa35
pop ecx
push eax
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040b068
mov edx, str.Internet_Explorer_Server
lea ecx, [esp + 0x74]
mov byte [esp + 0x180], 9
call fcn.0040cb78
push 0
push 1
lea ecx, [esp + 0x7c]
mov bl, al
mov byte [esp + 0x188], 4
call fcn.00401385
test bl, bl
je 0x40c03a
mov dword [edi + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x40c612
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 1
push dword [edi + 0x34]
mov dword [edi + 0x40], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [edi + 0x3c], esi
je 0x40c096
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x201
push dword [edi + 0x3c]
call esi
push 0
push 0
push 0x202
push dword [edi + 0x3c]
call esi
xor esi, esi
mov byte [edi + 0x38], 1
cmp byte [edi + 0x39], 0
jne 0x40c0b2
push dword [esp + 0x14]
mov ecx, edi
push dword [esp + 0x1c]
call fcn.00402915
mov byte [edi + 0x39], al
push esi
push 1
lea ecx, [esp + 0xac]
call fcn.00401385
jmp 0x40c157
push ecx
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x64]
call fcn.00404c32
mov esi, eax
mov byte [esp + 0x180], 0xa
cmp dword [esp + 0xa0], 8
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x8c]
cmovae edx, dword [esp + 0x8c]
lea eax, [edx + ecx*2]
lea ecx, [esp + 0x8c]
cmovae ecx, dword [esp + 0x8c]
push ecx
push 0
push eax
push ecx
mov edx, esi
lea ecx, [esp + 0x34]
call fcn.004053cd
add esp, 0x10
lea ecx, [esp + 0x5c]
mov bl, al
mov byte [esp + 0x180], 3
call fcn.0040342b
test bl, bl
je 0x40c155
lea eax, [esp + 0x8c]
push eax
call fcn.0040b98f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x46dedc], eax
call fcn.0040b31f
xor esi, esi
push esi
push 1
lea ecx, [esp + 0xc4]
call fcn.00401385
push esi
push 1
lea ecx, [esp + 0xdc]
call fcn.00401385
cmp dword [esp + 0x2c], 0
je 0x40c186
push dword [esp + 0x2c]
call fcn.00438414
pop ecx
or dword [esp + 0x180], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x94]
call fcn.00401385
cmp dword [edi + 0x44], esi
je 0x40c1e5
cmp byte [edi + 0x38], 0
jne 0x40c1e5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x44]
cmp eax, 0x2710
jbe 0x40c1e5
inc dword [edi + 0x48]
cmp dword [edi + 0x48], 0xa
jae 0x40c1e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x44], eax
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x40c1d5
mov eax, dword [eax]
push eax
push dword [edi + 0x34]
call fcn.0041ebe1
jmp 0x40c1e5
call fcn.0040b31f
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00437d2f
mov esp, ebp
pop ebp
ret