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

Disassembly:
sub esp, 0x54
mov dword [esp + 0x20], 2
push ebx
push esi
push edi
push ebp
call dword [0x4f6a68]
mov dword [esp + 0x40], eax
push 5
call fcn.00410520
mov dword [esp + 0x48], eax
add esp, 4
cmp dword [esp + 0x70], 0
je 0x402f08
mov eax, dword [esp + 0x70]
mov dword [eax], 0
cmp dword [esp + 0x7c], 0
je 0x402f19
mov eax, dword [esp + 0x7c]
mov dword [eax], 0
mov esi, dword [esp + 0x80]
test esi, esi
je 0x402f27
mov byte [esi], 0
xor eax, eax
cmp dword [esp + 0x68], eax
je 0x403355
cmp dword [esp + 0x7c], eax
je 0x403355
test esi, esi
je 0x403355
mov ecx, dword [esp + 0x68]
cmp byte [ecx], al
je 0x40335d
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
cmp dword [0x4e90d4], eax
jne 0x402f93
push 0x4e90d4
push 0x4e7518
push 0x4e7508
call fcn.00480510
push eax
call fcn.004cedb0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jne 0x40305c
lea eax, [esp + 0x24]
mov ecx, dword [0x4e90d4]
push eax
push 0x4e7528
push ecx
mov eax, dword [ecx]
call dword [eax]
cmp dword [esp + 0x14], 0
jne 0x40305c
lea eax, [esp + 0x18]
push eax
push 0x4e7418
push 0x4e7408
call fcn.00480510
push eax
call fcn.004cedb0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x402ff7
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push 0x4e7348
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x14], eax
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x40305c
push 0x42
push 0x200
call fcn.00479a30
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40303a
mov dword [esp + 0x34], 8
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esp + 0x1c], edi
jmp 0x40305c
push 0x400
push ebx
call fcn.00479d00
add esp, 4
push eax
push ebx
mov eax, dword [esp + 0x24]
push 1
mov ebx, dword [eax]
push 0
push eax
call dword [ebx + 0xc]
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jne 0x403294
cmp dword [esp + 0x14], ebx
jne 0x403294
cmp dword [esp + 0x18], ebx
je 0x403294
lea eax, [esp + 0x28]
push eax
push 0x4e74f8
push 0x4e7558
call fcn.00480510
push eax
call fcn.004cedb0
test eax, eax
jne 0x403294
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
push 0x4e7548
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x403294
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
push eax
push ecx
mov eax, dword [0x4e90d4]
mov ebp, dword [eax]
push edx
push eax
call dword [ebp + 0xc]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x403294
mov edi, dword [esp + 0x6c]
mov byte [esp + 0x13], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
cmp edi, 1
sbb ebp, ebp
call fcn.004c4160
and ebp, 0x7530
mov eax, dword [esp + 0x20]
push ebp
push eax
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp dword [esp + 0x14], ebx
jne 0x403220
cmp byte [esp + 0x13], bl
jne 0x403220
cmp byte [esi], bl
jne 0x403220
cmp dword [esp + 0x38], ebx
jne 0x403220
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, dword [esp + 0x2c]
jge 0x40316a
call fcn.004c4190
cmp dword [esp + 0x24], ebx
je 0x40317a
mov eax, dword [esp + 0x24]
push eax
mov ebp, dword [eax]
call dword [ebp + 0x10]
cmp byte [esp + 0x13], bl
jne 0x4031fd
cmp dword [esp + 0x70], ebx
jne 0x40319a
cmp dword [esp + 0x2c], ebx
jg 0x403220
cmp dword [esp + 0x3c], ebx
jg 0x403220
cmp byte [esi], bl
jne 0x4031d4
call fcn.004bed50
test eax, eax
jne 0x403209
lea eax, [esp + 0x48]
push 1
push 0x100
push 0x100
push ebx
push eax
call dword [0x4f6ce0]
test eax, eax
je 0x4031d4
cmp dword [esp + 0x4c], 0x100
jne 0x4031d4
cmp dword [esp + 0x50], 0x1b
je 0x40320e
test edi, edi
jle 0x4031e6
call dword [0x4f6a68]
sub eax, dword [esp + 0x40]
cmp eax, edi
jg 0x403213
cmp byte [esi], bl
je 0x4031ee
test edi, edi
je 0x403218
push 4
call fcn.004b9b00
add esp, 4
call fcn.00456b40
cmp dword [esp + 0x14], ebx
je 0x40311c
jmp 0x403220
mov byte [esi], 1
jmp 0x403220
mov byte [esi], 1
jmp 0x403220
mov byte [esi], 1
jmp 0x403220
mov dword [esp + 0x34], 2
push 0
mov eax, dword [0x4e90d4]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x18]
call fcn.004c41f0
cmp dword [esp + 0x34], 0
jne 0x403294
cmp dword [esp + 0x38], 0
jne 0x403294
cmp dword [esp + 0x2c], 0
jle 0x403294
cmp byte [esp + 0x13], 0
jne 0x403255
cmp dword [esp + 0x70], 0
jne 0x403294
cmp dword [esp + 0x70], 0
je 0x40328c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x403294
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x403294
mov eax, dword [esp + 0x7c]
cmp dword [eax], 0
je 0x403294
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov dword [esp + 0x30], 0
cmp dword [esp + 0x24], 0
je 0x4032a5
mov eax, dword [esp + 0x24]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x18], 0
je 0x4032b6
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x1c], 0
je 0x4032c7
mov eax, dword [esp + 0x1c]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x28], 0
je 0x4032d8
mov eax, dword [esp + 0x28]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x20], 0
je 0x4032e9
mov eax, dword [esp + 0x20]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [0x4e90d4], 0
je 0x403307
mov eax, dword [0x4e90d4]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [0x4e90d4], 0
mov esi, dword [esp + 0x74]
test esi, esi
je 0x40335d
cmp dword [esp + 0x30], 0
jne 0x40335d
mov ecx, dword [esp + 0x68]
push ecx
call dword [0x4f6960]
add eax, dword [esp + 0x68]
cmp dword [esp + 0x68], eax
ja 0x403345
mov cl, byte [eax]
cmp cl, 0x2f
je 0x40333e
cmp cl, 0x5c
je 0x40333e
dec eax
cmp dword [esp + 0x68], eax
jbe 0x40332b
cmp dword [esp + 0x68], eax
ja 0x403345
inc eax
movsx ecx, word [esp + 0x78]
push ecx
push eax
push esi
call dword [0x4f6aa0]
jmp 0x40335d
mov dword [esp + 0x30], 0x1f44
mov eax, dword [esp + 0x44]
push eax
call fcn.00410520
mov eax, dword [esp + 0x34]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret