Function at 0x4043c0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
test byte [0x42088c], 1
jne 0x4043fa
or dword [0x42088c], 1
push 0x418d30
mov dword [0x420888], edi
mov dword [0x420884], edi
mov dword [0x420880], edi
call fcn.004096b5
add esp, 4
mov eax, 2
test byte [0x42088c], al
jne 0x40442c
or dword [0x42088c], eax
push 0x418d00
mov dword [0x42087c], edi
mov dword [0x420878], edi
mov dword [0x420874], edi
call fcn.004096b5
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax], edi
mov ebx, 0x401
mov esi, 0x400
mov dword [ecx], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], esi
cmp dword [0x420884], ebx
jl 0x40445c
mov edx, dword [0x420880]
push ebx
push edi
push edx
jmp 0x404495
mov eax, dword [0x420880]
cmp eax, edi
je 0x40446e
push eax
call fcn.00409587
add esp, 4
push ebx
mov dword [0x420884], edi
mov dword [0x420880], edi
call fcn.00409507
add esp, 4
mov dword [0x420880], eax
cmp eax, edi
je 0x40449d
push ebx
push edi
mov dword [0x420884], ebx
push eax
call fcn.0040e850
add esp, 0xc
mov ebx, dword [0x420880]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 8]
push eax
push edx
call dword [0x420710]
test eax, eax
jne 0x4044d5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp - 0x14]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x2710
ja 0x4044c3
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x404685
mov eax, dword [ebp - 0xc]
add eax, ecx
cmp eax, esi
jbe 0x4045e8
mov dword [ebp - 0x14], eax
lea esi, [eax + 1]
cmp dword [0x420880], edi
jne 0x404566
cmp esi, edi
jg 0x40451a
mov dword [0x420884], edi
jmp 0x4045d9
push esi
cmp esi, dword [0x420884]
jg 0x404532
push edi
push edi
call fcn.0040e850
add esp, 0xc
jmp 0x4045df
mov dword [0x420884], edi
mov dword [0x420880], edi
call fcn.00409507
add esp, 4
mov dword [0x420880], eax
cmp eax, edi
je 0x4045df
push esi
push edi
push eax
mov dword [0x420884], esi
call fcn.0040e850
add esp, 0xc
jmp 0x4045df
cmp esi, dword [0x420884]
jle 0x4045df
push esi
call fcn.00409507
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x40459f
mov eax, dword [0x420880]
cmp eax, ebx
je 0x404591
push eax
call fcn.00409587
add esp, 4
mov dword [0x420884], ebx
mov dword [0x420880], ebx
jmp 0x4045df
push esi
push ebx
push edi
call fcn.0040e850
mov ecx, dword [0x420884]
mov edx, dword [0x420880]
add esp, 0xc
push ecx
push edx
push edi
call fcn.0040e8d0
mov eax, dword [0x420880]
add esp, 0xc
cmp eax, ebx
je 0x4045d3
push eax
call fcn.00409587
add esp, 4
mov dword [0x420884], esi
mov dword [0x420880], edi
mov ebx, dword [0x420880]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x14]
mov edx, eax
mov eax, dword [edx + 8]
mov edx, dword [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebx + edx]
lea edx, [ebp - 0x2c]
push edx
push 0x404bd0
mov dword [ebp - 0x24], ecx
push 0
lea ecx, [ebp - 0x1c]
push 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4044c3
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40464b
mov dword [ebp - 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
je 0x4044c3
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
push edi
push edi
lea edx, [ebp - 8]
push edx
push ecx
call dword [0x420710]
test eax, eax
jne 0x4044d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp - 0xc], edi
je 0x4044c3
add esi, ebx
push str._CODI_
push ebx
mov dword [ebp - 0x14], esi
mov byte [esi], 0
mov dword [ebp + 8], 1
call fcn.004025b0
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x4046c9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax], edi
mov dword [ebp + 8], edi
mov dword [ecx], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
add ebx, 6
cmp ebx, esi
jae 0x4046b1
push str.__CODI_
push ebx
call fcn.004025b0
add esp, 8
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4046b1
cmp eax, esi
jae 0x4046b1
mov esi, eax
sub esi, ebx
cmp esi, edi
jle 0x4046b1
lea edi, [esi + 1]
xor ecx, ecx
mov byte [eax], 0
cmp edi, ecx
jg 0x40471f
mov eax, dword [0x420874]
cmp eax, ecx
je 0x404711
push eax
call fcn.00409587
add esp, 4
xor ecx, ecx
mov dword [0x420878], ecx
mov dword [0x420874], ecx
jmp 0x404776
cmp edi, dword [0x420878]
jg 0x404732
mov edx, dword [0x420874]
push edi
push ecx
push edx
jmp 0x40476e
mov eax, dword [0x420874]
cmp eax, ecx
je 0x404746
push eax
call fcn.00409587
add esp, 4
xor ecx, ecx
push edi
mov dword [0x420878], ecx
mov dword [0x420874], ecx
call fcn.00409507
add esp, 4
mov dword [0x420874], eax
test eax, eax
je 0x404776
push edi
push 0
mov dword [0x420878], edi
push eax
call fcn.0040e850
add esp, 0xc
mov eax, dword [0x420874]
push esi
push ebx
push eax
call fcn.0040e8d0
mov edi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, dword [edi + 4]
jg 0x404796
mov ecx, dword [edi]
push esi
push 0
push ecx
jmp 0x4047c8
mov eax, dword [edi]
test eax, eax
je 0x4047a5
push eax
call fcn.00409587
add esp, 4
push esi
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.00409507
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4047d0
push esi
push 0
mov dword [edi + 4], esi
push eax
call fcn.0040e850
add esp, 0xc
mov edi, dword [edi]
xor ebx, ebx
cmp edi, ebx
jne 0x4047f2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
xor edi, edi
mov dword [eax], edi
mov dword [ebp + 8], ebx
mov dword [ecx], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
push eax
mov dword [eax], esi
mov ecx, dword [0x420874]
push edi
mov eax, esi
call fcn.00401f40
add esp, 8
test eax, eax
je 0x4047d8
mov edx, dword [ebp - 0x18]
inc edx
push str._APDE_
push edx
call fcn.004025b0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4048ba
add esi, 6
mov dword [ebp + 0xc], esi
cmp esi, dword [ebp - 0x14]
jae 0x4048ba
push str.__APDE_
push esi
call fcn.004025b0
add esp, 8
cmp eax, ebx
je 0x4048ba
mov ebx, eax
sub ebx, esi
test ebx, ebx
jle 0x4048ba
lea edi, [ebx + 1]
mov esi, 0x420874
mov byte [eax], 0
call fcn.00401760
test eax, eax
je 0x4048a7
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x420874]
push ebx
push eax
push ecx
call fcn.0040e8d0
mov esi, dword [ebp + 0x14]
add esp, 0xc
mov edi, ebx
call fcn.00401760
test eax, eax
je 0x4048a7
mov ecx, dword [ebp + 0x18]
mov dword [ecx], ebx
mov edx, esi
mov eax, dword [edx]
push ecx
mov ecx, dword [0x420874]
push eax
mov eax, ebx
call fcn.00401f40
add esp, 8
test eax, eax
jne 0x4048ba
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
xor edi, edi
mov dword [eax], edi
mov dword [ebp + 8], 0
mov dword [ecx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14