Function at 0x412140
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 0x4f0b73
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x51f584]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.:7799
mov dword [esp + 0x2c], str.:6217
mov dword [esp + 0x30], str.:25871
nop
mov dword [esp + 0x14], ebx
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov edx, dword [esp + 0x18]
mov dword [esp + 0xf0], ebx
mov eax, dword [edx + 0xbc]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov edi, 7
xor edx, edx
mov eax, ecx
mov byte [esp + 0x12], bl
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x412212
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.00405a50
mov byte [esp + 0xf0], 1
test byte [0x527450], 1
jne 0x4122a6
or dword [0x527450], 1
mov eax, dword [esp + 0x18]
mov byte [esp + 0xf0], 2
mov ecx, dword [eax + 0xbc]
mov ecx, dword [ecx + 0x24]
xor edx, edx
mov eax, ecx
mov dword [0x5273e4], edi
mov dword [0x5273e0], ebx
mov word [0x5273d0], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x412276
sub eax, esi
sar eax, 1
push eax
push ecx
mov ecx, 0x5273d0
call fcn.00405a50
push 0x4f9810
call fcn.00482da7
add esp, 4
mov byte [esp + 0xf0], 1
mov dword [esp + 0x1c], ebx
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*4 + 0x28]
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4122c0
sub ecx, esi
sar ecx, 1
mov ebx, ecx
call fcn.00420d60
cmp dword [0x5273e4], 8
mov eax, dword [0x5273d0]
jae 0x4122e9
mov eax, 0x5273d0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xbc]
mov dword [edx + 0x24], eax
mov ecx, dword [ecx + 0xbc]
lea esi, [esp + 0xc4]
call fcn.00411000
xor ebx, ebx
push 0xffffffffffffffff
mov byte [esp + 0xf4], 3
push ebx
mov esi, 0xf
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], vtable.tpsp::CCurl.0
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00402c50
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov edi, 0x10
mov byte [esp + 0xf0], 7
cmp dword [esp + 0xd8], edi
jb 0x41237c
mov eax, dword [esp + 0xc4]
push eax
call fcn.004825e4
add esp, 4
lea edx, [esp + 0x38]
lea ecx, [esp + 0x34]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.00403470
push 0xffffffffffffffff
push ebx
test eax, eax
je 0x412460
lea ecx, [esp + 0x94]
push ecx
mov ecx, 0x5273d0
call fcn.00405950
mov dword [esp + 0x34], vtable.tpsp::CCurl.0
mov byte [esp + 0xf0], 0xb
cmp dword [esp + 0x84], edi
jb 0x4123e1
mov edx, dword [esp + 0x70]
push edx
call fcn.004825e4
add esp, 4
mov byte [esp + 0xf0], 0xa
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0x68], edi
jb 0x41240e
mov eax, dword [esp + 0x54]
push eax
call fcn.004825e4
add esp, 4
mov byte [esp + 0xf0], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], edi
jb 0x412435
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004825e4
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
cmp eax, 3
jb 0x4122b0
lea esi, [ebx + 0xf]
lea edi, [ebx + 0x10]
jmp 0x4124fc
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1e], 1
call fcn.00402c50
mov dword [esp + 0x34], vtable.tpsp::CCurl.0
mov byte [esp + 0xf0], 9
cmp dword [esp + 0x84], edi
jb 0x41249c
mov eax, dword [esp + 0x70]
push eax
call fcn.004825e4
add esp, 4
mov byte [esp + 0xf0], 8
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0x68], edi
jb 0x4124c9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004825e4
add esp, 4
mov byte [esp + 0xf0], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], edi
jb 0x4124f0
mov edx, dword [esp + 0x38]
push edx
call fcn.004825e4
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0xf0], bl
cmp dword [esp + 0xa0], 8
jb 0x41251d
mov eax, dword [esp + 0x8c]
push eax
call fcn.004825e4
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], cx
cmp byte [esp + 0x12], bl
je 0x412574
cmp dword [esp + 0xb8], ebx
je 0x41257c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.Status:
mov byte [ecx], bl
call fcn.00402a60
lea ecx, [esp + 0x3c]
call fcn.0041f590
mov dword [esp + 0x14], eax
jmp 0x41257c
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0xf0], 0xffffffff
cmp dword [esp + 0xbc], edi
jb 0x4125a0
mov edx, dword [esp + 0xa8]
push edx
call fcn.004825e4
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x4125c9
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x24]
cmp eax, 0x493e0
ja 0x4125cd
xor ebx, ebx
jmp 0x4121b0
mov al, 1
jmp 0x4125d1
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00482239
mov esp, ebp
pop ebp
ret 4