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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48528c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x28], 0x1000
lea ecx, [ebp - 0x12c]
call fcn.004032b0
mov dword [ebp - 4], 0
push str.UNIT_ATK.E5
lea ecx, [ebp - 0x12c]
call fcn.0041fb35
push 4
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
mov cl, byte [eax + 1]
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.0043fc48
and eax, 0xff
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041fc89
lea ecx, [ebp - 0x12c]
call fcn.004192c5
push 8
mov ecx, 0x4b1b18
call fcn.00403340
push 1
push 8
mov ecx, 0x4b69b0
call fcn.0047467a
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov al, byte [edx + 0x254]
and eax, 0xc0
cmp eax, 0xc0
je 0x4219fc
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx + 0xd]
mov ecx, edx
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.00403360
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 0x2cb
call fcn.004065a0
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x2cc]
push ecx
mov edx, dword [ebp - 0x13c]
mov al, byte [edx + 0x2cb]
push eax
mov ecx, 0x4b4250
call fcn.0045503f
call fcn.0041e5db
mov ecx, 0x4b4250
call fcn.0045461c
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x43
je 0x421a47
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x42
je 0x421a47
mov edx, dword [ebp - 0x13c]
mov al, byte [edx + 0xd]
push eax
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx + 1]
push edx
call fcn.00435829
add esp, 8
jmp 0x421a62
push 2
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
mov cl, byte [eax + 1]
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.00406670
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov al, byte [edx + 1]
mov ecx, eax
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.0043fcc9
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx + 1]
mov ecx, edx
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.0043e320
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 3
ja case.default.0x421ab8
mov ecx, dword [ebp - 0x140]
jmp dword [ecx*4 + 0x421cd5]
mov edx, dword [ebp - 0x28]
add edx, 0x4000
mov dword [ebp - 0x28], edx
jmp case.default.0x421ab8
mov eax, dword [ebp - 0x28]
add eax, 0x8000
mov dword [ebp - 0x28], eax
push 4
push 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x1000
push ecx
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
push 4
push 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
push 0x40
push 0x40
call fcn.0041ee53
add esp, 0x10
mov eax, dword [ebp - 0x28]
add eax, 0x1000
mov dword [ebp - 0x28], eax
jmp case.default.0x421ab8
mov ecx, dword [ebp - 0x28]
add ecx, 0x8000
mov dword [ebp - 0x28], ecx
jmp case.default.0x421ab8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
mov cl, byte [eax + 1]
imul ecx, ecx, 0x24
add ecx, 0x4b2c50
call fcn.00403360
mov dx, word [eax]
mov word [ebp - 0x130], dx
mov ax, word [ebp - 0x130]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0044fa1f
add esp, 8
mov dx, word [ebp - 0x130]
push edx
call fcn.0044fa7e
add esp, 4
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
sub edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
sub eax, 8
mov dword [ebp - 0x18], eax
push 4
push 0
push 0
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
push 0x40
push 0x40
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004519e6
add esp, 0x14
mov eax, dword [ebp - 0x1f]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
push ecx
call fcn.004036f9
add esp, 8
push 4
push 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 1]
push ecx
push 0x40
push 0x40
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0045137c
add esp, 0x18
call fcn.0041e5f6
call fcn.0042c4e0
call fcn.0047eb97
mov dword [ebp - 0x14], eax
push 1
push 0x27
mov ecx, 0x4b69b0
call fcn.0047467a
mov ecx, dword [ebp - 0x13c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, edx
imul ecx, ecx, 0x46
add ecx, 0x4af4c0
call fcn.0045f710
push eax
push 0x48b8a8
push 2
call fcn.0042f699
add esp, 0xc
call fcn.0047eb97
sub eax, dword [ebp - 0x14]
mov ecx, 0x14
sub ecx, eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jle 0x421c89
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x4b1b18
call fcn.00403340
call fcn.0042c4e0
push 0
push 4
push 0
push 0
mov ecx, 0x4ae4c8
call fcn.0047fa40
push eax
push 0x40
push 0x40
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00451913
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004032d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret