Function at 0x408b30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, ecx
test edi, edi
jl 0x4091a2
cmp edi, 5
jg 0x4091a2
cmp dword [esi + 0xdb4], edi
jne 0x408baf
cmp word [esp + 0x2c], 0xffff
je 0x408baf
mov edx, dword [esi + 0x2270]
xor eax, eax
test edx, edx
jle 0x408b88
mov ecx, dword [esi + 0x226c]
mov bx, word [esi + 0xdb4]
mov ebp, dword [ecx]
cmp word [ebp], bx
je 0x408ba0
inc eax
add ecx, 4
cmp eax, edx
jl 0x408b78
xor eax, eax
cmp ax, word [esp + 0x2c]
jne 0x408baf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esi + 0x226c]
mov eax, dword [ecx + eax*4]
mov ax, word [eax + 2]
jmp 0x408b8a
push 1
mov ecx, esi
call fcn.0040b700
mov ecx, esi
call fcn.0040b6a0
mov ecx, esi
call fcn.004100c0
mov ecx, esi
call fcn.00411f40
push edi
mov ecx, esi
mov dword [esi + 0xdb4], edi
call fcn.004112e0
mov eax, dword [esi + 0xdb4]
cmp eax, 5
ja case.default.0x408bea
jmp dword [eax*4 + 0x4091b0]
mov ecx, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 5
push ecx
call edi
mov edx, dword [esi + 0x269c]
push 0
push edx
call edi
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 0
push eax
jmp 0x408fba
mov ecx, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 0
push ecx
call edi
mov edx, dword [esi + 0x269c]
push 0
push edx
call edi
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 5
push eax
call edi
jmp 0x408f67
mov ecx, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 0
push ecx
call edi
mov edx, dword [esi + 0x269c]
push 5
push edx
call edi
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 0
push eax
call edi
mov ecx, esi
call fcn.0040eb10
jmp 0x408f67
mov ecx, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 5
push ecx
call edi
mov edx, dword [esi + 0x269c]
push 0
push edx
call edi
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 0
push eax
call edi
mov edi, dword [esp + 0x2c]
cmp di, 1
je 0x408d20
cmp di, 2
je 0x408d20
cmp di, 4
je 0x408d20
mov edx, dword [esi + 0x2270]
xor eax, eax
test edx, edx
jle 0x408d1a
mov edi, dword [esi + 0x226c]
mov bx, word [esi + 0xdb4]
mov ecx, edi
mov ebp, dword [ecx]
cmp word [ebp], bx
je 0x408d4b
inc eax
add ecx, 4
cmp eax, edx
jl 0x408d0a
xor edi, edi
mov dword [esp + 0x2c], edi
mov edx, dword [esi + 0x2270]
mov bx, word [esi + 0xdb4]
xor eax, eax
test edx, edx
jle 0x408d65
mov ecx, dword [esi + 0x226c]
mov ebp, dword [ecx]
cmp word [ebp], bx
je 0x408d54
inc eax
add ecx, 4
cmp eax, edx
jl 0x408d39
jmp 0x408d65
mov ecx, dword [edi + eax*4]
mov di, word [ecx + 2]
jmp 0x408d1c
mov ecx, dword [esi + 0x226c]
mov edx, dword [ecx + eax*4]
mov word [edx + 2], di
mov edi, dword [esp + 0x2c]
cmp di, 4
jne 0x408da5
push 0
call fcn.00401f40
mov ecx, eax
call fcn.0047ace4
push 5
call fcn.00444960
mov ecx, eax
call fcn.0047ace4
push 5
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
push 2
call dword [esi + 0x1d7c]
add esp, 4
jmp case.default.0x408bea
cmp di, 2
push 0
jne 0x408dc2
call fcn.00444960
mov ecx, eax
call fcn.0047ace4
push 5
call fcn.00401f40
jmp 0x408d80
call fcn.00444960
mov ecx, eax
call fcn.0047ace4
push 0
call fcn.00401f40
mov ecx, eax
call fcn.0047ace4
lea eax, [esp + 0x28]
push 1
push eax
push str.ContShoot
push str.General
call fcn.00445920
mov ecx, eax
call fcn.00445b80
mov eax, dword [esp + 0x28]
cmp eax, 4
ja case.default.0x408e02
jmp dword [eax*4 + 0x4091c8]
push 0
jmp 0x408d89
push 5
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
push 0
push 3
jmp 0x408e5e
push 5
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
push 0
push 5
jmp 0x408e5e
push 5
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
push 0
push 0xc
jmp 0x408e5e
push 5
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
push 0
push 0xf
call fcn.0043d6d0
mov ecx, eax
call fcn.0043df30
push 2
call dword [esi + 0x1d7c]
add esp, 4
jmp case.default.0x408bea
mov ecx, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 0
push ecx
call edi
mov edx, dword [esi + 0x269c]
push 5
push edx
call edi
mov eax, dword [esp + 0x2c]
cmp ax, 8
je 0x408edd
cmp ax, 0x10
je 0x408edd
cmp ax, 0x20
je 0x408edd
mov edx, dword [esi + 0x2270]
xor eax, eax
test edx, edx
jle 0x408ed7
mov edi, dword [esi + 0x226c]
mov bx, word [esi + 0xdb4]
mov ecx, edi
mov ebp, dword [ecx]
cmp word [ebp], bx
je 0x408f0a
inc eax
add ecx, 4
cmp eax, edx
jl 0x408ec7
xor eax, eax
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x2270]
mov di, word [esi + 0xdb4]
xor eax, eax
test edx, edx
jle 0x408f1f
mov ebx, dword [esi + 0x226c]
mov ecx, ebx
mov ebp, dword [ecx]
cmp word [ebp], di
je 0x408f13
inc eax
add ecx, 4
cmp eax, edx
jl 0x408ef8
jmp 0x408f1f
mov eax, dword [edi + eax*4]
mov ax, word [eax + 2]
jmp 0x408ed9
mov ecx, dword [ebx + eax*4]
mov dx, word [esp + 0x2c]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x2698]
push 0
push eax
call dword [0x48a59c]
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0040f310
call fcn.00403720
mov ecx, eax
call fcn.00405c70
mov edx, dword [esi + 0x4e0]
push 0
push edx
push 4
mov ecx, esi
call fcn.00407e00
push 4
push 0x42
mov ecx, esi
call fcn.00407eb0
push 0
call fcn.00444960
mov ecx, eax
call fcn.0047ace4
push 0
call fcn.00401f40
mov ecx, eax
call fcn.0047ace4
push 1
jmp 0x408fda
mov eax, dword [esi + 0x2038]
mov edi, dword [0x48a59c]
push 5
push eax
call edi
mov ecx, dword [esi + 0x269c]
push 0
push ecx
call edi
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov edx, dword [esi + 0x2698]
push 0
push edx
call edi
push 0
call fcn.00444960
mov ecx, eax
call fcn.0047ace4
push 0
call fcn.00401f40
mov ecx, eax
call fcn.0047ace4
push 2
call dword [esi + 0x1d7c]
add esp, 4
push 0
call fcn.0043d6d0
mov ecx, eax
call fcn.0047ace4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xdb4]
push 0
push eax
push ecx
call fcn.004219d0
mov ecx, eax
call fcn.00421cd0
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0xdb4]
and edx, 0xffff
mov ecx, esi
push edx
push eax
call fcn.004092d0
mov ecx, dword [esi + 0xdb4]
push ecx
call fcn.00426030
mov ecx, eax
call fcn.004264c0
mov eax, dword [esi + 0x2270]
mov bp, word [esi + 0xdb4]
mov ebx, dword [0x48a598]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], ebp
jle 0x409084
mov edx, dword [esi + 0x226c]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 4]
push ecx
call ebx
test eax, eax
jne 0x409074
mov eax, dword [esi + 0x2270]
inc edi
cmp edi, eax
jl 0x409054
jmp 0x409084
mov edx, dword [esi + 0x226c]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov edi, dword [esp + 0x28]
push edi
call ebx
test eax, eax
je 0x409135
lea edx, [esp + 0x14]
push edx
push edi
call dword [0x48a590]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
sub ebx, eax
push 0x20
sub edi, ecx
push 1
push ebx
push edi
call dword [0x48a038]
mov ebp, eax
mov eax, dword [esi + 0x225c]
push ebp
push eax
call dword [0x48a03c]
push ebp
call dword [0x48a048]
mov ecx, dword [esi + 0x225c]
mov edx, dword [esp + 0x28]
push 1
push ecx
push edx
call dword [0x48a574]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x2258]
mov ecx, dword [esp + 0x14]
push 4
push ebx
push edi
push eax
mov eax, dword [edx + 0x1c]
push ecx
push 0
push eax
call dword [0x48a594]
xor ecx, ecx
push ebx
push edi
xor eax, eax
push ecx
mov ecx, dword [esi + 0x225c]
push eax
push ecx
mov ecx, dword [esi + 0x2258]
call fcn.0043d220
mov ecx, dword [esi + 0x2258]
call fcn.00446c20
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x2270]
xor edi, edi
test eax, eax
jle 0x40916e
mov edx, dword [esi + 0x226c]
mov eax, dword [edx + edi*4]
cmp word [eax], bp
jne 0x409157
mov eax, dword [eax + 4]
push 5
push eax
jmp 0x40915d
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [0x48a59c]
mov eax, dword [esi + 0x2270]
inc edi
cmp edi, eax
jl 0x409141
mov edx, dword [esi + 0xdb4]
mov ecx, esi
push edx
call fcn.0040b7a0
test eax, eax
je 0x4091a2
mov eax, dword [esi + 0xdb4]
mov ecx, esi
push eax
push 0x2100
call fcn.004088a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8