Function at 0x41f6e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
xor eax, eax
cmp edi, ebx
setne al
mov word [0x4ae1ec], ax
movsx ebp, ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [0x4bb638], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.004798b0
add esp, 4
cmp ebp, ebx
mov word [0x4be266], 1
je 0x41f72f
cmp dword [0x4ae21c], ebx
jne 0x41f735
mov dword [0x4ace78], ebx
call fcn.00477530
test eax, eax
je 0x41f7df
cmp byte [0x4b497e], bl
jne 0x41f759
push ebx
call fcn.0047cd2f
push eax
call fcn.00479930
add esp, 8
call fcn.00479940
push eax
call fcn.004798d0
call fcn.00479940
push eax
call fcn.0047cd00
add esp, 8
call fcn.0047a1b0
call fcn.0047a1e0
cmp ebp, ebx
jne 0x41f787
call fcn.00479ea0
jmp 0x41f78c
call fcn.0047a570
call fcn.00478b30
mov eax, dword [0x4a70a4]
mov esi, dword [0x4a70a8]
mov ecx, dword [0x4a70ac]
cmp edi, ebx
mov dword [str._b_b_b_b_b_b], eax
mov dword [0x4a709c], esi
mov dword [0x4a70a0], ecx
jne 0x41f7df
xor edx, edx
mov ecx, esi
mov dl, byte [0x4abf3c]
mov byte [0x4abb40], 8
mov al, byte [edx + 0x4ab97c]
mov dl, 1
shl dl, cl
mov byte [0x4abb2c], al
not dl
mov byte [0x4ace7c], dl
cmp ebp, ebx
je 0x41f7f8
push edi
call fcn.004ef970
add esp, 4
mov esi, eax
mov edi, 0xffff
jmp 0x41f9ab
xor ecx, ecx
xor edx, edx
xor eax, eax
mov esi, 0x3e8
mov dword [ecx + 0x4abbe8], esi
mov dword [ecx + 0x4abb04], esi
mov dword [ecx + 0x4acb58], esi
mov byte [eax + 0x4abef7], bl
mov byte [eax + 0x4ace63], bl
mov byte [eax + 0x4abd4f], bl
mov byte [eax + 0x4ace77], bl
mov byte [eax + 0x4abb3f], bl
mov byte [eax + 0x4ace53], bl
mov byte [eax + 0x4ab977], bl
mov byte [eax + 0x4acdeb], bl
mov byte [eax + 0x4abd27], bl
mov byte [eax + 0x4acc23], bl
mov byte [eax + 0x4acb9b], bl
mov word [edx + 0x4ad322], bx
mov word [edx + 0x4acbfe], bx
lea edi, [eax + 0xf]
sub ecx, 4
dec eax
sub edx, 2
test edi, edi
jne 0x41f803
call fcn.00442170
call fcn.0043d700
call fcn.00430340
cmp byte [0x4acdfc], 1
ja 0x41f8bb
cmp byte [0x4acbde], bl
jne 0x41f8bb
xor eax, eax
mov ax, word [0x4ad300]
shl eax, 1
mov cx, word [eax + 0x496948]
mov dx, word [eax + 0x4969b0]
mov word [0x4abf3e], cx
mov word [0x4abc2c], dx
jmp 0x41f8c4
mov word [0x4abf3e], 0x100
mov edi, 0xffff
mov word [0x4abef8], di
mov word [0x4abefa], di
call fcn.0043d090
cmp dword [0x4ae21c], ebx
je 0x41f8fb
cmp byte [0x4b497e], bl
je 0x41f8fb
mov eax, 0x3030303
mov dword [0x4abd38], eax
mov dword [0x4abd3c], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x41f92f
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.004ef912
add esp, 8
test al, al
jne 0x41f9a7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp byte [0x4abb2c], bl
jne 0x41f94b
xor eax, eax
mov ecx, 6
mov ax, word [0x4ad300]
shr eax, 1
cdq
idiv ecx
jmp 0x41f95f
xor eax, eax
mov ecx, 6
mov ax, word [0x4ad300]
shr eax, 1
cdq
idiv ecx
add edx, ecx
mov cx, word [0x4abd52]
mov word [0x4ace40], dx
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x4abfa4
push ecx
call fcn.0042c740
add esp, 0x10
test eax, eax
jne 0x41f991
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41f90f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x1c]
call fcn.00477530
test eax, eax
je 0x41f9b9
call fcn.004768c0
mov ecx, dword [0x4ad98c]
mov al, byte [0x4ae0a9]
and ecx, 0x24002000
cmp al, bl
mov dword [0x4ad98c], ecx
je 0x41f9dd
mov eax, ecx
or al, 1
mov dword [0x4ad98c], eax
push esi
call fcn.004336c0
mov cl, byte [0x4abb2c]
xor eax, eax
cmp cl, bl
setne al
inc eax
push eax
call fcn.00405990
call fcn.0044d9b0
push esi
call fcn.00421720
mov esi, eax
push esi
call fcn.0042b1a0
push esi
call fcn.004178d0
push esi
call fcn.0044be80
add esp, 0x18
cmp ebp, ebx
mov esi, eax
je 0x41fa43
push esi
push 0x4a53d0
push 1
call fcn.00420610
push eax
push 0x4a5568
push 1
call fcn.00420610
add esp, 0x18
mov esi, eax
call fcn.004205d0
call fcn.0043e690
push esi
call fcn.00450f20
mov esi, eax
call fcn.0044bc40
xor ecx, ecx
mov cx, word [0x4acc10]
push ecx
call fcn.00423ba0
add esp, 8
cmp ebp, ebx
mov word [0x4ad606], di
mov word [0x4ad604], di
je 0x41fab6
push esi
push 0x240
push 0x4c0af0
call fcn.0043f810
push 0x4c0af0
mov esi, eax
call fcn.0043e930
call fcn.0043f850
mov dx, word [0x4abef8]
mov ax, word [0x4abefa]
push edx
push eax
call fcn.00411b00
add esp, 0x18
jmp 0x41fb61
mov edx, dword [esp + 0x10]
mov ecx, 0x90
xor eax, eax
mov edi, 0x4c0af0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push edx
call fcn.0042c6f0
add esp, 8
test al, al
jne 0x41fae7
push str.Error_loading_scenario_file._n
call fcn.00488ae0
add esp, 4
mov eax, dword [esp + 0x10]
push ebx
push 0x11f
push str.C:war2bneLANGSourceGAME.cpp
push eax
call sub.Storm.dll_Ordinal_403
call fcn.00433680
call fcn.00421580
mov cl, byte [0x4abb2c]
mov eax, dword [esp + 0x20]
neg cl
sbb ecx, ecx
and ecx, 6
cmp eax, ebx
mov word [0x4ace40], cx
je 0x41fb29
call fcn.004534c0
jmp 0x41fb33
xor eax, eax
mov ax, word [0x4ad300]
shr eax, 1
cdq
mov ecx, 6
idiv ecx
mov eax, dword [0x4ad98c]
add word [0x4ace40], dx
test eax, 0x20000
je 0x41fb61
and eax, 0xfffdffff
mov word [0x4ace40], 0x19
mov dword [0x4ad98c], eax
cmp byte [0x4acbde], bl
jne 0x41fba6
cmp byte [0x4b497e], bl
jne 0x41fba6
mov ax, word [0x4abd52]
cmp ax, 0x53c6
jb 0x41fba6
cmp ax, 0x53dd
ja 0x41fba6
cmp word [0x4ad300], 0x30
jne 0x41fba6
push 1
mov byte [0x4abb2c], 1
call fcn.00423010
add esp, 4
mov byte [0x4abb2c], bl
jmp 0x41fbb0
push 1
call fcn.00423010
add esp, 4
push esi
call fcn.00458190
call fcn.0043a7a0
call fcn.0044c680
call fcn.0042d8c0
call fcn.004203f0
call fcn.0042d630
call fcn.0042c9b0
call fcn.0044c240
push esi
call fcn.0043e060
call fcn.0044a960
call fcn.0044d710
call fcn.004208d0
push esi
call fcn.004534e0
add esp, 0xc
call fcn.0041e3b0
call fcn.00477530
test eax, eax
je 0x41fc13
cmp ebp, ebx
jne 0x41fc0e
call fcn.004789f0
call fcn.00471de0
push ebx
call fcn.004798b0
mov al, byte [0x4b497e]
add esp, 4
cmp al, bl
mov word [0x4be266], bx
jne 0x41fc31
call fcn.00431ce0
mov edi, dword [0x4ad350]
mov edx, ebp
neg edx
sbb edx, edx
and edx, edi
push edx
call fcn.00431d30
add esp, 4
cmp ebp, ebx
jne 0x41fc62
mov eax, dword [0x4acb5c]
mov ecx, dword [0x4acb60]
mov dword [0x4ac0a8], eax
mov dword [0x4ac0ac], ecx
call fcn.00409d50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret