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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xffffffff
push esi
push edi
jne 0x476468
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x47696f
fldz
xor edi, edi
cmp dword [ebx + 0x234], 0xffffffff
fstp qword [esp + 0x50]
lea eax, [esp + 0x34]
push 2
pop esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x68], edi
mov byte [esp + 0xf], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
je 0x476951
cmp dword [ebx + 0x238], 0xffffffff
je 0x476951
cmp byte [esp + 0xf], 0
jne 0x47650f
push dword [esp + 0x30]
call sub.Secur32.dll_FreeContextBuffer
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
cmp byte [ebp + 0x14], 0
je 0x476520
cmp byte [esp + 0xf], 0
je 0x476520
xor ecx, ecx
jmp 0x476523
lea ecx, [ebx + 4]
mov dl, byte [esp + 0xf]
push edi
neg dl
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [ebx + 4]
sbb edx, edx
and edx, eax
mov al, byte [esp + 0x1b]
neg al
push edx
push edi
lea edx, [esp + 0x84]
sbb eax, eax
not eax
and eax, edx
push eax
push edi
push edi
push 0xc11c
lea eax, [ebx + 0x28]
push eax
push ecx
lea eax, [ebx + 0x234]
push eax
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
cmp eax, 0x90317
mov dword [esp + 0x4c], eax
mov byte [esp + 0xf], 0
je 0x4768c2
cmp eax, 0x90320
je 0x4764f7
cmp eax, 0x80090328
je 0x4768c8
cmp eax, 0x80090322
je 0x4768c8
cmp eax, 0x80090325
je 0x4768c8
cmp eax, 0x90312
jne 0x47664a
cmp dword [esp + 0x44], 5
jne 0x4766c8
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x40]
je 0x476625
push dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
add ecx, eax
push ecx
lea esi, [esp + 0x60]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.0055efb9
push dword [esp + 0x14]
call fcn.0058f8c9
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
pop ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.0058f8c9
pop ecx
push 2
pop esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
jmp 0x4764f7
cmp eax, edi
jne 0x4767ce
cmp dword [esp + 0x44], 5
jne 0x4766be
mov edx, dword [esp + 0x40]
cmp edx, edi
mov dword [esp + 0x10], edx
jbe 0x4766be
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x248]
sub eax, ecx
cmp eax, edx
jae 0x47668a
lea edi, [ecx + edx]
lea eax, [ebx + 0x23c]
call fcn.0055ae97
push 2
xor edi, edi
pop esi
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push dword [esp + 0x10]
mov ecx, dword [ebx + 0x23c]
add edx, eax
mov eax, dword [ebx + 0x248]
push edx
add eax, ecx
push eax
call fcn.005987b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [ebx + 0x248], eax
cmp dword [esp + 0x28], edi
je 0x4768ff
mov eax, dword [esp + 0x28]
push dword [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.0058f8c9
pop ecx
push dword [esp + 0x10]
call fcn.0058f8c4
pop ecx
mov ecx, dword [esp + 0x28]
cmp ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
je 0x476702
push ecx
push dword [esp + 0x34]
push eax
call fcn.005987b0
add esp, 0xc
cmp dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
je 0x47672c
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fld qword [esp + 0x50]
push dword [ebp + 0x18]
fstp qword [esp + 0x88]
fld qword [0x60d3a8]
mov dword [esp + 0x14], eax
push dword [esp + 0x28]
fstp qword [esp + 0x94]
mov eax, dword [ebp + 0x10]
push dword [esp + 0x28]
mov dword [esp + 0x8c], eax
push ecx
mov ecx, dword [ebx]
mov eax, esp
mov dword [esp + 0x8c], 0x5c8684
mov dword [eax], ecx
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004c8e6a
mov eax, dword [esp + 0x6c]
cmp eax, edi
jne 0x476925
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x7c], 0x608e7c
cmp dword [ebp + 0x18], eax
jbe 0x4768d9
fld qword [esp + 0x50]
sub dword [ebp + 0x18], eax
fadd qword [0x60d3a8]
mov eax, dword [esp + 0x4c]
cmp eax, edi
fstp qword [esp + 0x50]
je 0x4768ff
cmp eax, 0x90312
je 0x4767e9
cmp eax, 0x80090318
je 0x4767e9
cmp eax, edi
jge 0x4764f7
jmp 0x4768c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fld qword [esp + 0x50]
push dword [ebp + 0x18]
fstp qword [esp + 0xac]
fld qword [0x60d3a8]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
fstp qword [esp + 0xb4]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0xc4]
push eax
push ecx
mov ecx, dword [ebx]
mov eax, esp
mov dword [esp + 0xb4], 0x5c8684
mov dword [eax], ecx
lea eax, [esp + 0xb4]
push eax
lea esi, [esp + 0x7c]
mov dword [esp + 0x28], edi
call fcn.004c8fbf
mov eax, dword [esp + 0x64]
cmp eax, edi
jne 0x476934
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x4c]
cmp dword [ebp + 0x18], eax
jbe 0x476946
fld qword [esp + 0x50]
sub dword [ebp + 0x18], eax
push dword [esp + 0x10]
fadd qword [0x60d3a8]
lea eax, [esp + 0xbc]
push eax
lea esi, [esp + 0x1c]
fstp qword [esp + 0x58]
call fcn.0055efb9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
push 2
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
pop esi
jmp 0x4764f7
cmp byte [ebp + 0x14], 0
je 0x4768ff
lea edi, [ebx + 4]
push edi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
or dword [edi], 0xffffffff
or dword [ebx + 8], 0xffffffff
mov edi, dword [ebp + 0xc]
push dword [esp + 0x14]
mov dword [edi], esi
call fcn.0058f8c9
pop ecx
push dword [esp + 0x20]
call fcn.0058f8c9
pop ecx
push dword [esp + 0x30]
call sub.Secur32.dll_FreeContextBuffer
mov eax, edi
jmp 0x47696f
mov esi, dword [ebp + 0xc]
mov dword [esi], edi
push dword [esp + 0x14]
call fcn.0058f8c9
pop ecx
push dword [esp + 0x20]
call fcn.0058f8c9
pop ecx
push dword [esp + 0x30]
call sub.Secur32.dll_FreeContextBuffer
mov eax, esi
jmp 0x47696f
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esp + 0x7c], 0x608e7c
jmp 0x476904
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esp + 0xa0], 0x608e7c
jmp 0x476904
mov esi, dword [ebp + 0xc]
mov dword [esi], 2
jmp 0x476939
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], esi
call fcn.0058f8c9
pop ecx
push edi
call fcn.0058f8c9
pop ecx
push dword [esp + 0x30]
call sub.Secur32.dll_FreeContextBuffer
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14