Function at 0x48cdd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, dword [0xb2f818]
push ebx
push ebp
push esi
mov dword [esp + 0x40], eax
mov eax, dword [0x1215de0]
xor esi, esi
mov ebx, ecx
cmp eax, esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], 0xffffffff
jne 0x4901d9
mov eax, dword [0xb08954]
mov edi, 1
cmp eax, edi
je 0x4901d9
cmp eax, 6
je 0x4901d9
cmp eax, 4
jne 0x48ce2d
call fcn.004996a0
cmp dword [0xb08a34], edi
je 0x4901d9
mov ebp, dword [0x12b11ac]
mov ecx, ebp
shl ecx, 5
sub ecx, ebp
lea eax, [ebp + ecx*8]
lea edx, [eax + eax*2]
cmp dword [edx*8 + 0xb2163c], esi
je 0x48d0e7
cmp dword [0x143b6f4], esi
jne 0x48ce70
cmp dword [0xc7d058], esi
jne 0x48ce70
dec dword [0xb2df40]
cmp dword [0xb2df40], esi
jne 0x4901d9
push esi
push 0xffffffffffffffff
mov ecx, 0xcdf6c8
mov dword [0xc7d058], esi
call fcn.00483a20
push esi
push 0xffffffffffffffff
mov ecx, 0xc756f0
call fcn.00483a20
mov ecx, 0xb33048
mov dword [0xb330a0], 9
call fcn.004734e0
mov eax, dword [0xb08954]
cmp eax, esi
jne 0x48cf9c
mov eax, dword [0x12b11ac]
mov esi, 2
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
cmp dword [edx*8 + 0xb2163c], edi
jne 0x48cef2
mov ecx, 0xb08900
call fcn.0045d840
mov eax, dword [0x12b11ac]
mov dword [0xb0894c], esi
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
cmp dword [edx*8 + 0xb2163c], esi
jne 0x48cf79
cmp dword [0xb08938], 6
jne 0x48cf61
mov eax, dword [0xb0898c]
test eax, eax
jne 0x48cf61
push 0
push 0x1c
mov ecx, 0xb08900
mov dword [0xb0898c], edi
mov dword [0xb08950], 0
call fcn.0045cf90
push 0
push 0x11
mov dword [0xb0894c], esi
call fcn.00486fc0
add esp, 8
push 0
push 0x11
call fcn.00486fc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
push 0
push 0x1e
mov ecx, 0xb08900
call fcn.0045cf90
mov dword [0xb0894c], 0
push 0
push 0x11
call fcn.00486fc0
add esp, 8
push 0
push 0x11
call fcn.00486fc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
cmp eax, 5
jne 0x48d011
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
cmp dword [edx*8 + 0xb2163c], edi
jne 0x48cfcb
mov ecx, 0xb08900
call fcn.0045d9e0
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
cmp dword [edx*8 + 0xb2163c], 2
jne 0x48cfef
push esi
push 0x1e
mov ecx, 0xb08900
call fcn.0045cf90
push esi
push 0x11
call fcn.00486fc0
add esp, 8
push 0
push 0x11
call fcn.00486fc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
mov esi, 2
cmp eax, esi
jne 0x48d0d0
mov eax, dword [0xb08958]
test eax, eax
je 0x48d052
push 0x16
mov dword [0xb33070], 7
call fcn.00475dc0
add esp, 4
push 0
push 0x11
call fcn.00486fc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
cmp dword [edx*8 + 0xb2163c], edi
jne 0x48d0a6
cmp dword [0xb1ef34], esi
jge 0x48d085
push 0
push 0x1d
mov ecx, 0xb08900
call fcn.0045cf90
jmp 0x48d0a1
push 0x1d
mov ecx, 0xb33048
mov dword [0xb08a34], edi
mov dword [0xb33070], 0x2f
call fcn.004733e0
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
cmp dword [edx*8 + 0xb2163c], esi
jne 0x48d0ca
push 0
push 0x1e
mov ecx, 0xb08900
call fcn.0045cf90
mov dword [0xb0894c], esi
push 0
push 0x11
call fcn.00486fc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
cmp dword [ebx + 0x15414], esi
je 0x48d106
mov eax, dword [ebx + 0x15410]
cmp eax, esi
jle 0x48d106
dec eax
mov dword [ebx + 0x15410], eax
mov ebp, dword [0x12b11ac]
cmp dword [0xb2d554], esi
je 0x4901d9
cmp dword [0xb089f0], esi
je 0x48d14a
mov eax, ebp
mov dword [0xb089f0], esi
shl eax, 5
sub eax, ebp
lea eax, [ebp + eax*8]
lea ecx, [eax + eax*2]
mov dword [ecx*8 + 0xb2163c], edi
pop edi
pop esi
pop ebp
mov dword [0xb2df40], 0xa
pop ebx
add esp, 0xf0
ret
mov eax, 0xb2f81c
mov ecx, dword [eax]
cmp ecx, esi
je 0x48d162
inc ecx
cmp ecx, 0x4b0
mov dword [eax], ecx
jle 0x48d162
mov dword [eax], esi
add eax, 4
cmp eax, 0xb2f89c
jl 0x48d14f
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xdc]
mov edx, dword [0x11a28b4]
rep stosd dword es:[edi], eax
mov ecx, 9
or eax, 0xffffffff
lea edi, [esp + 0xb8]
mov dword [esp + 0x30], edx
rep stosd dword es:[edi], eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x94]
mov esi, 0x1b
rep stosd dword es:[edi], eax
mov eax, dword [0xb2d518]
mov ecx, dword [ebx + 0x3f08]
cmp eax, ecx
mov edi, 3
jne 0x48d274
mov ecx, dword [ebx + 0x3f04]
mov eax, dword [0xb2d51c]
inc ecx
cmp eax, ecx
jne 0x48d274
cmp dword [0xb31f18], 1
jne 0x48d274
mov eax, dword [0xb2d514]
test eax, eax
jne 0x48d274
mov ecx, dword [ebx + 0x43b8]
xor edx, edx
test ecx, ecx
jle 0x48d274
lea eax, [ebx + 0x43d0]
cmp dword [eax - 0xc], edi
jne 0x48d213
cmp dword [eax], 0x1e
jne 0x48d213
mov edx, 1
add eax, 0xbc
dec ecx
jne 0x48d204
test edx, edx
je 0x48d274
mov edx, dword [0x143b724]
xor ecx, ecx
test edx, edx
jle 0x48d24e
mov eax, 0x143b7fe
cmp word [eax - 6], 0
je 0x48d244
movsx edi, word [eax]
cmp edi, ebp
jne 0x48d244
cmp word [eax - 4], si
je 0x48d274
inc ecx
add eax, 0x2c8
cmp ecx, edx
jl 0x48d230
push str.general_message3.wav
push str.ap_civil12.bik
push 0x12
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov eax, dword [ebx + 0x43b8]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x48fffe
mov ecx, dword [esp + 0x14]
mov edx, ecx
imul edx, edx, 0xbc
mov eax, dword [edx + ebx + 0x43c0]
lea ebp, [edx + ebx]
mov edx, dword [0xb2d51c]
cmp edx, eax
mov dword [esp + 0x20], ebp
jl 0x48fffe
cmp edx, eax
jne 0x48d2c9
mov eax, dword [0xb2d518]
mov edx, dword [ebp + 0x43bc]
cmp eax, edx
jl 0x48fffe
cmp word [ebp + 0x43c8], 0
jne 0x48ffe7
mov eax, dword [ebp + 0x43c4]
dec eax
je 0x48fb2e
dec eax
je 0x48fb04
dec eax
jne 0x48ffe7
mov eax, dword [ebp + 0x43d0]
xor edx, edx
cmp eax, edx
je 0x48d303
cmp eax, 0x1a
jne 0x48d320
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x48d31c
imul eax, eax, 0xbc
mov word [eax + ebx + 0x43c8], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
mov edx, ecx
xor eax, eax
imul edx, edx, 0x2f
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jmp 0x48d341
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea esi, [edx + eax]
cmp byte [ebx + esi*4 + 0x43db], 0
lea edi, [ebx + esi*4]
je case.0x48d382.23
mov esi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
inc esi
cmp eax, 0x27
lea ecx, [eax + ecx*8]
mov dword [esp + 0x1c], esi
lea esi, [ebx + ecx*4 + 0xd69c]
mov dword [esi], 0
ja case.0x48d382.23
xor ecx, ecx
mov cl, byte [eax + 0x490244]
jmp dword [ecx*4 + 0x4901e4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
jmp case.0x48d382.23
mov eax, dword [esp + 0x28]
movsx ecx, word [ebx + eax*4 + 0x43dc]
push ecx
mov ecx, ebx
call fcn.00491350
mov ecx, dword [0x12b11ac]
mov edx, ecx
shl edx, 5
sub edx, ecx
lea ecx, [ecx + edx*8]
lea ecx, [ecx + ecx*2]
cmp dword [ecx*8 + 0xb21578], eax
jl 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov eax, dword [eax*8 + 0xb21608]
test eax, eax
je case.0x48d382.23
mov cl, byte [edi + 0x43da]
test cl, cl
je 0x48da68
cmp eax, 0xa
je 0x48da68
movsx ecx, cl
inc ecx
cmp ecx, eax
jne 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov ecx, dword [eax*8 + 0xb2160c]
test ecx, ecx
je 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov ecx, dword [esp + 0x28]
movsx eax, word [ebx + ecx*4 + 0x43e8]
push eax
mov ecx, ebx
call fcn.00491350
mov ecx, dword [0x12b11ac]
mov edx, ecx
shl edx, 5
sub edx, ecx
lea ecx, [ecx + edx*8]
lea ecx, [ecx + ecx*2]
cmp dword [ecx*8 + 0xb204e4], eax
jl 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x48], 0xa
mov dword [esp + 0x4c], 0xb
movsx eax, word [ebx + edx*4 + 0x43ec]
push eax
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x58], 0xd
call fcn.00491350
mov cl, byte [edi + 0x43da]
test cl, cl
jne 0x48d52f
mov ecx, dword [0x12b11ac]
xor edx, edx
mov edi, ecx
mov ebx, 4
shl edi, 5
sub edi, ecx
lea ecx, [ecx + edi*8]
lea edi, [esp + 0x48]
lea ecx, [ecx + ecx*2]
shl ecx, 1
mov ebp, dword [edi]
add edi, 4
add ebp, ecx
add edx, dword [ebp*4 + 0xb204a8]
dec ebx
jne 0x48d511
cmp edx, eax
jl 0x48d6ee
jmp 0x48d6d2
mov edx, dword [0x12b11ac]
mov edi, edx
shl edi, 5
sub edi, edx
movsx ecx, cl
lea edx, [edx + edi*8]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
cmp dword [edx*4 + 0xb204a8], eax
jl 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, ebx
mov dword [esp + 0x74], 0x11
mov dword [esp + 0x78], 0x12
movsx eax, word [ebx + eax*4 + 0x43d8]
push eax
mov dword [esp + 0x80], 0x13
mov dword [esp + 0x84], 0x14
mov dword [esp + 0x88], 0x15
mov dword [esp + 0x8c], 0x16
mov dword [esp + 0x90], 0x17
mov dword [esp + 0x94], 0x18
call fcn.00491350
mov cl, byte [edi + 0x43da]
test cl, cl
jne 0x48d52f
mov ecx, dword [0x12b11ac]
xor edx, edx
mov edi, ecx
mov ebx, 8
shl edi, 5
sub edi, ecx
lea ecx, [ecx + edi*8]
lea edi, [esp + 0x74]
lea ecx, [ecx + ecx*2]
shl ecx, 1
mov ebp, dword [edi]
add edi, 4
add ebp, ecx
add edx, dword [ebp*4 + 0xb204a8]
dec ebx
jne 0x48d603
cmp edx, eax
jl 0x48d6ee
jmp 0x48d6d2
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x58], 0xe
mov dword [esp + 0x5c], 2
movsx eax, word [ebx + eax*4 + 0x43f4]
push eax
mov dword [esp + 0x64], 3
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], 6
mov dword [esp + 0x70], 7
mov dword [esp + 0x74], 9
call fcn.00491350
cmp dword [0xb08938], 8
jne 0x48d693
cmp dword [0xb0898c], 1
jne 0x48d693
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov dl, byte [edi + 0x43da]
test dl, dl
jne 0x48d701
mov ecx, dword [0x12b11ac]
xor edx, edx
mov edi, ecx
mov ebx, 7
shl edi, 5
sub edi, ecx
lea ecx, [ecx + edi*8]
lea edi, [esp + 0x58]
lea ecx, [ecx + ecx*2]
shl ecx, 1
mov ebp, dword [edi]
add edi, 4
add ebp, ecx
add edx, dword [ebp*4 + 0xb204a8]
dec ebx
jne 0x48d6bd
cmp edx, eax
jl 0x48d6ee
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
mov dword [esi], 1
jmp case.0x48d382.23
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esi], 0
jmp case.0x48d382.23
mov ecx, dword [0x12b11ac]
mov edi, ecx
shl edi, 5
sub edi, ecx
movsx edx, dl
lea ecx, [ecx + edi*8]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*2]
cmp dword [ecx*4 + 0xb204a8], eax
jmp 0x48d54f
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea ecx, [eax + edx*8]
lea ecx, [ecx + ecx*2]
mov edx, dword [ecx*8 + 0xb21540]
test edx, edx
jne 0x48d757
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
cmp dword [0xb08954], 2
jne 0x48dcaf
mov ecx, dword [0xb1ef34]
test ecx, ecx
jne 0x48dcaf
cmp eax, 1
jne 0x48dcaf
mov ecx, 0x11721b0
call fcn.004d30a0
test eax, eax
je 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov ecx, dword [eax*8 + 0xb21540]
test ecx, ecx
jne case.0x48d382.23
mov eax, dword [ebp + 0x43d0]
cmp eax, 0x1a
je 0x48d7ea
test eax, eax
je 0x48d7ea
cmp eax, 0x17
je 0x48d7ea
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x43b8]
inc ecx
cmp ecx, edx
jge 0x48daaf
mov eax, ecx
imul eax, eax, 0xbc
lea eax, [eax + ebx + 0x441c]
cmp dword [eax - 0x58], 1
jne 0x48d822
cmp dword [eax], 0
jne 0x48d822
cmp word [eax - 0x54], 0
je case.0x48d382.23
inc ecx
add eax, 0xbc
cmp ecx, edx
jl 0x48d80c
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov ecx, dword [0x12b11ac]
push ecx
mov ecx, 0xb1ffd8
call fcn.00448f70
test eax, eax
je 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov ecx, dword [0x12bc308]
xor edx, edx
cmp ecx, 1
jle 0x48daaf
mov eax, 0x12bca42
dec ecx
mov edi, 2
cmp word [eax - 2], di
jne 0x48d896
cmp word [eax], 0x2d
jne 0x48d896
inc edx
add eax, 0x414
dec ecx
jne 0x48d889
test edx, edx
jne 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov ecx, dword [eax*8 + 0xb21540]
test ecx, ecx
je 0x48dcaf
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12bc308]
xor edi, edi
cmp eax, 1
jle 0x48d981
mov ebx, dword [0x12b11ac]
mov ecx, 0x12bca42
lea edx, [eax - 1]
cmp word [ecx - 2], 2
jne 0x48d974
movsx eax, word [ecx + 8]
cmp eax, ebx
jne 0x48d974
mov al, byte [ecx + 0x29e]
test al, al
jne 0x48d974
cmp word [ecx + 0x2ca], 0
jne 0x48d974
mov ax, word [ecx]
cmp ax, 0x1d
je 0x48d974
cmp ax, 0x1e
jne 0x48d949
cmp word [ecx + 0x2fa], 0
je 0x48d974
cmp ax, 0x3a
je 0x48d974
cmp ax, 0x3b
je 0x48d974
cmp ax, 0x3c
je 0x48d974
cmp ax, 0x29
je 0x48d974
cmp ax, 0x3d
je 0x48d974
cmp ax, 0x27
je 0x48d974
cmp ax, 0x28
je 0x48d974
inc edi
add ecx, 0x414
dec edx
jne 0x48d90d
test edi, edi
jne 0x48d999
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
inc eax
mov dword [esi], 1
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov ebx, dword [esp + 0x18]
mov dword [esi], 0
jmp case.0x48d382.23
mov al, byte [edi + 0x43da]
test al, al
je 0x48d9f7
jle case.0x48d382.23
cmp al, 4
jg case.0x48d382.23
movsx ecx, word [ebx + edx*4 + 0x440c]
movsx eax, al
cmp dword [eax*4 + 0xb2d29c], ecx
jl case.0x48d382.23
mov dword [eax*4 + 0xb2d29c], 0
mov eax, dword [esp + 0x10]
inc eax
mov dword [esi], 1
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
xor ecx, ecx
mov eax, 0xb2d298
mov edi, dword [eax]
add eax, 4
add ecx, edi
cmp eax, 0xb2d2bc
jl 0x48d9fe
movsx edx, word [ebx + edx*4 + 0x440c]
cmp ecx, edx
jl case.0x48d382.23
mov ecx, 9
xor eax, eax
mov edi, 0xb2d298
jmp 0x48daad
mov al, byte [edi + 0x43da]
test al, al
je 0x48da7c
jle case.0x48d382.23
cmp al, 4
jg case.0x48d382.23
movsx ecx, word [ebx + edx*4 + 0x4410]
movsx eax, al
cmp dword [eax*4 + 0xb2d2c0], ecx
jl case.0x48d382.23
mov dword [eax*4 + 0xb2d2c0], 0
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
xor ecx, ecx
mov eax, 0xb2d2bc
mov edi, dword [eax]
add eax, 4
add ecx, edi
cmp eax, 0xb2d2e0
jl 0x48da83
movsx edx, word [ebx + edx*4 + 0x4410]
cmp ecx, edx
jl case.0x48d382.23
mov ecx, 9
xor eax, eax
mov edi, 0xb2d2bc
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
mov cx, word [eax*8 + 0xb21676]
cmp cx, word [ebx + edx*4 + 0x4428]
jl case.0x48d382.23
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [0x12b11ac]
mov ecx, eax
movsx edx, word [ebx + edx*4 + 0x4430]
shl ecx, 5
sub ecx, eax
neg edx
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
cmp dword [eax*8 + 0xb2152c], edx
jmp 0x48dbd9
mov eax, dword [0x12b11ac]
movsx ecx, word [ebx + edx*4 + 0x4434]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
cmp dword [eax*8 + 0xb2152c], ecx
jmp 0x48db69
mov ecx, dword [0x12b11ac]
push ecx
mov ecx, 0xb1ffd8
call fcn.0044a5b0
mov edx, dword [esp + 0x28]
movsx ecx, word [ebx + edx*4 + 0x442c]
cmp eax, ecx
jl case.0x48d382.23
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
dec edx
cmp eax, edx
jne 0x48dbf3
push 1
push 0x1a
call fcn.00486fc0
mov eax, dword [ebx + 0x15414]
add esp, 8
test eax, eax
jne 0x48dbc7
mov eax, dword [esp + 0x28]
movsx eax, word [ebx + eax*4 + 0x4474]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
shl eax, 5
mov dword [ebx + 0x15410], eax
mov dword [ebx + 0x1540c], eax
mov eax, dword [ebx + 0x15410]
mov dword [ebx + 0x15414], 1
test eax, eax
jg case.0x48d382.23
mov eax, dword [esp + 0x10]
mov dword [esi], 1
inc eax
mov dword [esp + 0x10], eax
jmp case.0x48d382.23
mov eax, dword [ebx + 0x15414]
test eax, eax
je 0x48dc09
push 0
push 0x1a
call fcn.00486fc0
add esp, 8
mov dword [ebx + 0x15414], 0
jmp case.0x48d382.23
cmp dword [0xb08954], 2
je case.0x48d382.23
mov ecx, dword [0x143b724]
xor edx, edx
cmp ecx, 1
jle 0x48dcaf
mov eax, 0x143bac2
dec ecx
cmp word [eax - 2], 0
je 0x48dc50
cmp word [eax], 0x21
jne 0x48dc50
cmp word [eax + 0xca], 0
jne 0x48dc50
inc edx
add eax, 0x2c8
dec ecx
jne 0x48dc38
cmp edx, 4
jmp 0x48d54f
cmp dword [0xb08954], 2
je case.0x48d382.23
mov ecx, dword [0x143b724]
xor edx, edx
cmp ecx, 1
jle 0x48dcaf
mov eax, 0x143bac2
dec ecx
cmp word [eax - 2], 0
je 0x48dc9e
cmp word [eax], 0x16
jne 0x48dc9e
cmp word [eax + 0xca], 0
jne 0x48dc9e
cmp word [eax + 0x1de], 0
jle 0x48dc9e
inc edx
add eax, 0x2c8
dec ecx
jne 0x48dc7c
cmp edx, 2
jge 0x48daaf
mov dword [esi], 0
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x28
mov dword [esp + 0x24], eax
jl 0x48d339
cmp word [ebp + 0x43d4], 0
jne 0x48dcd9
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48dce9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jl 0x48ffe7
mov eax, 1
mov word [ebp + 0x43c8], ax
mov ecx, dword [ebp + 0x43d0]
mov dword [ecx*4 + 0xb2f81c], eax
mov eax, dword [ebp + 0x43d0]
cmp eax, 0x1e
ja case.0x48dd11.10
jmp dword [eax*4 + 0x49026c]
mov eax, dword [0x12b11ac]
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov ecx, dword [eax*8 + 0xb2163c]
test ecx, ecx
jne case.0x48dd11.10
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x43b8]
lea edx, [ecx + 1]
cmp edx, esi
jge 0x48dd9a
mov ecx, edx
mov edi, dword [0xb2d51c]
imul ecx, ecx, 0xbc
mov ebx, dword [0xb2d518]
lea eax, [ecx + eax + 0x43d0]
cmp dword [eax - 0xc], 3
jne 0x48dd90
mov ecx, dword [eax]
test ecx, ecx
je 0x48dd7a
cmp ecx, 0x1a
jne 0x48dd90
mov ecx, dword [eax - 0x10]
cmp edi, ecx
jl 0x48dd90
jne case.0x48dd11.10
cmp ebx, dword [eax - 0x14]
jg case.0x48dd11.10
inc edx
add eax, 0xbc
cmp edx, esi
jl 0x48dd69
mov edx, dword [ebp + 0x43cc]
mov esi, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.00491470
mov eax, dword [ebp + 0x43cc]
mov ecx, esi
push eax
call fcn.004914a0
xor eax, eax
mov word [ebp + 0x43c8], ax
mov dword [ebp + 0x43d0], eax
mov ecx, dword [0xb2d51c]
mov dword [ebp + 0x43c0], ecx
mov edx, dword [0xb2d518]
lea eax, [edx + 1]
jmp 0x48dff6
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea ebx, [eax + eax*2]
mov eax, dword [ebx*8 + 0xb2163c]
test eax, eax
jne case.0x48dd11.10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc edx
mov esi, dword [eax + 0x43b8]
cmp edx, esi
jge 0x48de63
mov ecx, edx
mov edi, dword [0xb2d51c]
imul ecx, ecx, 0xbc
mov ebp, dword [0xb2d518]
lea eax, [ecx + eax + 0x43d0]
cmp dword [eax - 0xc], 3
jne 0x48de59
mov ecx, dword [eax]
test ecx, ecx
je 0x48de43
cmp ecx, 0x1a
jne 0x48de59
mov ecx, dword [eax - 0x10]
cmp edi, ecx
jl 0x48de59
jne case.0x48dd11.10
cmp ebp, dword [eax - 0x14]
jg case.0x48dd11.10
inc edx
add eax, 0xbc
cmp edx, esi
jl 0x48de32
mov eax, dword [0xb08954]
xor edi, edi
cmp eax, edi
je 0x48de7c
cmp eax, 5
je 0x48de7c
cmp eax, 2
jne case.0x48dd11.10
mov esi, 1
push esi
mov dword [ebx*8 + 0xb2163c], esi
push 0x11
mov dword [0xb2df40], 0xf0
call fcn.00486fc0
mov eax, dword [0xb08920]
add esp, 8
cmp eax, 0x3d
je 0x48deac
cmp eax, 0x3e
jne 0x48dec5
mov edx, dword [0xb08934]
push edi
push 0xe
mov ecx, 0xb08900
mov dword [0xb08920], edx
call fcn.0045cf90
mov eax, dword [0x12bc324]
mov dword [0x116fb44], edi
cmp eax, edi
jle 0x48def2
mov ecx, 0x12bc308
call fcn.00524750
mov ecx, 0x12bc308
call fcn.00525e30
mov ecx, 0x14ead58
call fcn.00458500
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x164a4], edi
mov dl, byte [eax + 0x43df]
test dl, dl
je 0x48df1a
mov dword [ecx + 0x164a4], esi
call fcn.00497340
jmp 0x48ffe3
mov dl, byte [eax + 0x43eb]
test dl, dl
je 0x48df3c
mov dword [ecx + 0x164a4], 2
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov dl, byte [eax + 0x43ef]
test dl, dl
jne 0x48df78
mov dl, byte [eax + 0x43f3]
test dl, dl
jne 0x48df78
mov dl, byte [eax + 0x43f7]
test dl, dl
jne 0x48df78
mov dl, byte [eax + 0x441f]
test dl, dl
jne 0x48df78
mov dword [ecx + 0x164a4], esi
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov dword [ecx + 0x164a4], 3
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
mov eax, dword [edx*8 + 0xb2163c]
test eax, eax
jne case.0x48dd11.10
mov eax, dword [ebp + 0x43cc]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00491470
mov ecx, dword [ebp + 0x43cc]
push ecx
mov ecx, esi
call fcn.004914a0
mov word [ebp + 0x43c8], 0
mov dword [ebp + 0x43d0], 1
mov edx, dword [0xb2d51c]
mov dword [ebp + 0x43c0], edx
mov eax, dword [0xb2d518]
inc eax
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl case.0x48dd11.10
mov ecx, dword [esp + 0x18]
add eax, 0xfffffff4
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
mov ecx, dword [eax*8 + 0xb2163c]
test ecx, ecx
jne case.0x48dd11.10
mov ecx, dword [0xb08954]
test ecx, ecx
je 0x48e062
cmp ecx, 5
je 0x48e062
cmp ecx, 2
jne case.0x48dd11.10
mov ecx, 0x12bc308
mov dword [eax*8 + 0xb2163c], 2
call fcn.00526f60
mov eax, dword [0xb08954]
test eax, eax
jne 0x48e09f
cmp dword [0xb08938], 6
jne 0x48e09f
mov ecx, dword [0xb0898c]
test ecx, ecx
jne 0x48e09f
mov dword [0xb2df40], 1
jmp 0x48e0cd
cmp eax, 2
mov dword [0xb2df40], 0xf0
jne 0x48e0c1
mov eax, dword [0xb1ef34]
test eax, eax
jne 0x48e0c1
mov dword [0xb2df40], 0x280
push 2
push 0x11
call fcn.00486fc0
add esp, 8
mov eax, dword [0xb08920]
cmp eax, 0x3d
je 0x48e0dc
cmp eax, 0x3e
jne 0x48e0f6
mov edx, dword [0xb08934]
push 0
push 0xe
mov ecx, 0xb08900
mov dword [0xb08920], edx
call fcn.0045cf90
mov eax, dword [0x12bc324]
mov dword [0x116fb44], 0
test eax, eax
jle case.0x48dd11.10
mov ecx, 0x12bc308
call fcn.00524750
mov ecx, 0x12bc308
call fcn.00525e30
mov ecx, 0x14ead58
call fcn.00458500
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [ebp + 0x43cc]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00491470
mov ecx, dword [ebp + 0x43cc]
push ecx
mov ecx, esi
call fcn.004914a0
mov ecx, esi
call fcn.00497340
jmp 0x48ffe3
push 0xe
mov ecx, 0x14eafc0
call fcn.004e3370
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [ebp + 0x43cc]
test eax, eax
jne 0x48e18e
mov eax, 1
push eax
push 0xe
mov ecx, 0x14eafc0
call fcn.004e33b0
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
xor ebx, ebx
mov edx, ecx
push 0x41
shl edx, 5
sub edx, ecx
mov esi, 9
lea eax, [ecx + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [eax + 0xb201b8]
mov bl, byte [edx + 0xf6bd70]
mov edx, dword [eax + 0xb201b4]
mov eax, dword [eax + 0xb201b0]
push ebx
shl edx, 3
shl eax, 3
push edx
push eax
movsx eax, word [0xc6baa2]
cdq
idiv esi
push edx
push ecx
mov ecx, 0x12bc308
call fcn.004e5e00
mov ecx, dword [0x12b11ac]
xor ebx, ebx
mov edx, ecx
push 0x41
shl edx, 5
sub edx, ecx
lea eax, [ecx + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [eax + 0xb201b8]
mov bl, byte [edx + 0xf6bd70]
mov edx, dword [eax + 0xb201b4]
mov eax, dword [eax + 0xb201b0]
push ebx
shl edx, 3
shl eax, 3
push edx
push eax
movsx eax, word [0xc6baa2]
sar eax, 3
cdq
idiv esi
push edx
push ecx
mov ecx, 0x12bc308
call fcn.004e5e00
mov ecx, dword [0x12b11ac]
xor ebx, ebx
mov edx, ecx
push 0x41
shl edx, 5
sub edx, ecx
lea eax, [ecx + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [eax + 0xb201b8]
mov bl, byte [edx + 0xf6bd70]
mov edx, dword [eax + 0xb201b4]
mov eax, dword [eax + 0xb201b0]
push ebx
shl edx, 3
shl eax, 3
push edx
push eax
movsx eax, word [0xc6baa2]
sar eax, 6
cdq
idiv esi
push edx
push ecx
mov ecx, 0x12bc308
call fcn.004e5e00
mov ecx, dword [0x12b11ac]
mov edx, ecx
shl edx, 5
sub edx, ecx
xor ebx, ebx
push 0x42
lea eax, [ecx + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [eax + 0xb201b8]
mov bl, byte [edx + 0xf6bd70]
mov edx, dword [eax + 0xb201b4]
mov eax, dword [eax + 0xb201b0]
push ebx
shl edx, 3
shl eax, 3
push edx
push eax
movsx eax, word [0xc6baa2]
sar eax, 9
cdq
idiv esi
push edx
push ecx
mov ecx, 0x12bc308
call fcn.004e5e00
mov ecx, dword [0x12b11ac]
xor ebx, ebx
mov edx, ecx
push 0x42
shl edx, 5
sub edx, ecx
lea eax, [ecx + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [eax + 0xb201b8]
mov bl, byte [edx + 0xf6bd70]
mov edx, dword [eax + 0xb201b4]
mov eax, dword [eax + 0xb201b0]
push ebx
shl edx, 3
shl eax, 3
push edx
push eax
movsx eax, word [0xc6baa2]
sar eax, 0xc
cdq
idiv esi
push edx
push ecx
mov ecx, 0x12bc308
call fcn.004e5e00
mov ecx, dword [str.action_fair.bik]
push str.Random_Events1.wav
push ecx
push 1
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48e39f
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48e3ce
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [esp + 0x18]
mov dword [0xb089bc], 1
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [esp + 0x18]
mov dword [0xb089bc], 0
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
push ecx
mov ecx, 0xb1ffd8
call fcn.00449210
mov edx, dword [0x12b11ac]
mov ecx, 0x143b720
push edx
call fcn.0040e1e0
mov eax, 0xa
mov esi, 0xe
mov dword [0xb08920], eax
mov dword [0xb08930], eax
mov dword [0xb08934], eax
mov eax, dword [0xb08908]
cmp eax, esi
jne 0x48e4ef
mov eax, dword [0xb0890c]
cmp eax, 0x30
jne 0x48e4ce
push 0
push esi
mov ecx, 0xb08900
call fcn.0045cf90
cmp dword [0xb08908], esi
jne 0x48e4ef
mov eax, dword [0xb0890c]
cmp eax, 0x3d
je 0x48e4d8
cmp eax, 0x3e
jne 0x48e4ef
push 0
push esi
mov ecx, 0xb08900
mov dword [0xb08920], 0x3d
call fcn.0045cf90
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov ecx, dword [eax + 0xb215f0]
test ecx, ecx
je case.0x48dd11.10
mov edx, ecx
shl edx, 6
add edx, ecx
lea ecx, [ecx + edx*4]
mov edx, dword [eax + 0xb215f4]
cmp edx, dword [ecx*4 + 0x12bc638]
je case.0x48dd11.10
xor ecx, ecx
mov dword [eax + 0xb215f0], ecx
mov dword [eax + 0xb215f4], ecx
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [esp + 0x18]
mov dword [0xb08a44], 1
call fcn.00497340
jmp 0x48ffe3
mov esi, dword [0x12b11ac]
mov eax, esi
shl eax, 5
sub eax, esi
lea ecx, [esi + eax*8]
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov word [ecx + 0xb216a4], 0x18
mov eax, dword [ecx + 0xb20038]
cmp eax, 0x1770
jle 0x48e5a4
add eax, 0xffffe890
cdq
sub eax, edx
sar eax, 1
add eax, 0x1770
mov dword [ecx + 0xb20038], eax
mov ecx, dword [ebp + 0x43cc]
push ecx
push esi
mov ecx, 0xb1ffd8
call fcn.0044b8c0
mov edx, dword [str.action_plague.bik]
push str.Random_Events2.wav
push edx
push 2
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48e606
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48e635
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
push 0x1e
push ecx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
je 0x48e6ec
mov edx, dword [0x12b11ac]
mov ecx, 0x143b720
push edx
call fcn.0040e150
mov eax, dword [str.action_wheat_die.bik]
push str.Random_Events3.wav
push eax
push 3
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48e714
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48e743
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
push 0x1f
push ecx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
je 0x48e7fa
mov edx, dword [0x12b11ac]
mov ecx, 0x143b720
push edx
call fcn.0040ee60
mov eax, dword [str.action_hops_die.bik]
push str.Random_Events4.wav
push eax
push 4
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48e822
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48e851
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
push 0x20
push ecx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
je 0x48e921
mov edx, dword [0x12b11ac]
mov ecx, 0x143b720
push edx
call fcn.0040efc0
push str.Random_Events5.wav
push 0x6219a4
push 5
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov eax, dword [str.action_apples_die.bik]
push 0x6219a4
push eax
push 0x6219a4
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48e949
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48e978
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, 0x11b9ad0
call fcn.004af5c0
mov ecx, dword [str.action_trees_die.bik]
push str.Random_Events6.wav
push ecx
push 6
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48ea3a
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48ea69
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, 0x14eafc0
call fcn.004e25a0
test eax, eax
je 0x48eb63
mov ecx, dword [0x12b11ac]
push 0x1f
push ecx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
jne 0x48eb11
mov edx, dword [0x12b11ac]
push 0x1e
push edx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
je 0x48eb63
mov ecx, 0x14eafc0
mov word [0xb2dfb4], 0x4b0
call fcn.004e2620
mov eax, dword [0x152b73c]
mov ecx, dword [0x152b738]
push eax
push ecx
mov ecx, 0xa5ca68
call fcn.0048c240
mov edx, dword [str.action_rabbits.bik]
push str.Random_Events7.wav
push edx
push 7
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48eb8b
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48ebba
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, 0x14eafc0
call fcn.004e23c0
test eax, eax
je 0x48ed11
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov word [ecx + 0xb216a6], 0xc
mov eax, dword [ecx + 0xb20038]
cmp eax, 0x1770
jle 0x48ec7e
add eax, 0xffffe890
cdq
sub eax, edx
sar eax, 1
add eax, 0x1770
mov dword [ecx + 0xb20038], eax
mov eax, dword [ebp + 0x43cc]
xor edi, edi
test eax, eax
jle 0x48ed11
mov ebx, 1
lea edx, [esp + 0x3c]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, 0x14eafc0
call fcn.004e23c0
mov eax, dword [esp + 0x3c]
xor edx, edx
lea ecx, [eax + eax*2 + 0x621c9]
mov esi, dword [ecx*4 + 0x8682d0]
mov ecx, dword [esp + 0x2c]
mov dl, byte [esi + ecx + 0xf6bd70]
push edx
push eax
push ecx
push 0xdd
mov ecx, 0x14eafc0
call fcn.004e1c50
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, 0xa5ca68
call fcn.0048c240
mov eax, esi
shl eax, 6
add eax, esi
shl eax, 3
inc edi
mov word [eax + 0x14eb1aa], 0
mov word [eax + 0x14eb1ac], bx
cmp edi, dword [ebp + 0x43cc]
jl 0x48ec93
mov edx, dword [str.action_wolves.bik]
push str.Random_Events8.wav
push edx
push 8
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48ed61
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48ed90
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, 0xb1ffd8
call fcn.00448760
test eax, eax
je 0x48ef2a
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
mov eax, dword [0x11a28b4]
inc eax
cmp eax, 0x32
mov word [edx*8 + 0xb216a8], 0x10
mov dword [0x11a28b4], eax
jl 0x48ee40
mov eax, 1
mov dword [0x11a28b4], eax
push 0
push eax
mov ecx, 0x11721b0
call fcn.004d2d30
mov eax, dword [0x11a28b4]
mov ecx, 0xb1ffd8
mov byte [eax + 0x11a2aac], 8
call fcn.004487a0
mov ecx, dword [ebp + 0x43cc]
shl eax, 4
mov esi, eax
inc ecx
push ecx
push 0x1a
mov edx, dword [esi + 0xb2fb1c]
mov eax, dword [esi + 0xb2fb18]
push 8
push edx
push eax
push 9
push 0
mov ecx, 0x14eafc0
call fcn.004e11f0
mov ecx, dword [esi + 0xb2fb1c]
mov edx, dword [esi + 0xb2fb18]
push ecx
push edx
mov ecx, 0xa5ca68
mov edi, eax
call fcn.0048c240
mov eax, edi
mov ebx, dword [esp + 0x38]
shl eax, 6
add eax, edi
movsx ecx, word [eax*8 + 0x14eb01c]
lea esi, [eax*8 + 0x14eb01c]
cmp ebx, ecx
jge 0x48ef02
mov eax, ebx
mov ecx, 0x14eafc0
push eax
push edi
inc ebx
call fcn.004e0560
mov edx, eax
shl edx, 6
add edx, eax
lea eax, [eax + edx*4]
shl eax, 2
mov dword [eax + 0x12bc5b0], 5
mov word [eax + 0x12bc62c], 2
movsx eax, word [esi]
cmp ebx, eax
jl 0x48eec8
mov dword [esp + 0x38], ebx
mov ecx, dword [str.action_bandits.bik]
push str.Random_Events9.wav
push ecx
push 9
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48ef52
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48ef81
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [0x12b11ac]
push 0x21
push ecx
mov ecx, 0x143b720
call fcn.0040ad90
test eax, eax
je 0x48f062
mov edx, dword [0x12b11ac]
mov ecx, 0x12bc308
push edx
call fcn.00510a40
mov eax, dword [0x12b11ac]
mov ecx, 0x143b720
push eax
call fcn.0040ef70
push str.Random_Events10.wav
push 0x6219a4
push 0xa
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov ecx, dword [str.action_mad_cows.bik]
push 0x6219a4
push ecx
push 0x6219a4
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48f08a
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48f0b9
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov ecx, 0xb1ffd8
call fcn.00448760
test eax, eax
je 0x48f38d
mov ecx, 0xb1ffd8
call fcn.004487a0
mov ecx, dword [esp + 0x20]
shl eax, 4
mov edx, dword [ecx + 0x43cc]
mov esi, eax
mov eax, dword [0x12b11ac]
push edx
mov ecx, dword [esi + 0xb2fb1c]
mov edx, dword [esi + 0xb2fb18]
push 0x16
push eax
push ecx
push edx
push 3
push 0
mov ecx, 0x14eafc0
call fcn.004e11f0
mov ecx, dword [esi + 0xb2fb1c]
mov edx, dword [esi + 0xb2fb18]
mov ebp, eax
mov eax, dword [0x12b11ac]
push 1
push 0x25
push eax
push ecx
push edx
push 0xc
push 0
mov ecx, 0x14eafc0
call fcn.004e11f0
mov ecx, dword [esi + 0xb2fb18]
mov ebx, eax
mov eax, dword [esi + 0xb2fb1c]
mov dword [esp + 0x1c], ebx
push eax
push ecx
mov ecx, 0xa5ca68
call fcn.0048c240
mov esi, ebp
mov edi, ebx
shl esi, 6
shl edi, 6
add esi, ebp
add edi, ebx
shl esi, 3
shl edi, 3
xor ebx, ebx
mov word [esi + 0x14eb19a], 0
mov word [edi + 0x14eb19a], bx
cmp word [esi + 0x14eb01c], bx
jle 0x48f220
mov eax, ebx
mov ecx, 0x14eafc0
push eax
push ebp
inc ebx
call fcn.004e0560
mov edx, eax
shl edx, 6
add edx, eax
lea eax, [eax + edx*4]
shl eax, 2
mov dword [eax + 0x12bc5b0], 8
mov word [eax + 0x12bc62c], 2
movsx eax, word [esi + 0x14eb01c]
cmp ebx, eax
jl 0x48f1e6
xor esi, esi
cmp word [edi + 0x14eb01c], si
mov dword [esp + 0x38], esi
jle 0x48f274
mov ebx, 2
mov ecx, dword [esp + 0x1c]
mov eax, esi
push eax
push ecx
mov ecx, 0x14eafc0
inc esi
call fcn.004e0560
mov edx, eax
shl edx, 6
add edx, eax
lea eax, [eax + edx*4]
shl eax, 2
mov dword [eax + 0x12bc5b0], 8
mov word [eax + 0x12bc62c], bx
movsx eax, word [edi + 0x14eb01c]
cmp esi, eax
jl 0x48f234
mov dword [esp + 0x38], esi
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
lea edx, [eax + eax*2]
mov ecx, dword [edx*8 + 0xb2006c]
test ecx, ecx
jle 0x48f361
lea eax, [ecx + ecx*4]
xor esi, esi
xor edi, edi
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ecx
shl eax, 3
mov cx, word [eax + 0x143b7fa]
cmp cx, 0x28
jne 0x48f2c9
movsx esi, word [eax + 0x143b816]
movsx edi, word [eax + 0x143b818]
add esi, 3
add edi, 8
jmp 0x48f337
cmp cx, 0x29
jne 0x48f2e5
movsx esi, word [eax + 0x143b816]
movsx edi, word [eax + 0x143b818]
add esi, 3
add edi, 3
jmp 0x48f337
cmp cx, 0x2a
jne 0x48f301
movsx esi, word [eax + 0x143b816]
movsx edi, word [eax + 0x143b818]
add esi, 3
add edi, 3
jmp 0x48f337
cmp cx, 0x2b
jne 0x48f31d
movsx esi, word [eax + 0x143b816]
movsx edi, word [eax + 0x143b818]
add esi, 4
add edi, 4
jmp 0x48f337
cmp cx, 0x2c
jne 0x48f337
movsx esi, word [eax + 0x143b816]
movsx edi, word [eax + 0x143b818]
add esi, 5
add edi, 5
push 0
push 0
push 0
push edi
push esi
push ebp
mov ecx, 0x14eafc0
call fcn.004dac80
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push edi
push esi
push eax
mov ecx, 0x14eafc0
call fcn.004dac80
mov ecx, dword [str.action_archers.bik]
push str.Random_Events11.wav
push ecx
push 0xb
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov ebp, dword [esp + 0x20]
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48f3b5
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48f3e4
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov word [0xb2dfc8], 1
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
mov ecx, 0x2710
lea eax, [eax + eax*2]
shl eax, 3
mov word [eax + 0xb216ac], 0xc
mov edx, dword [eax + 0xb20038]
cmp edx, ecx
jle 0x48f488
mov dword [eax + 0xb20038], ecx
mov edx, dword [str.action_marriage.bik]
push str.Random_Events12.wav
push edx
push 0xc
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
push 0xcf
mov ecx, 0xc757c0
call fcn.0043cb20
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov word [0xb2dfca], 1
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [eax + ecx*8]
mov ecx, 0x2710
lea eax, [eax + eax*2]
shl eax, 3
mov word [eax + 0xb216ae], 0x30
mov edx, dword [eax + 0xb20038]
cmp edx, ecx
jle 0x48f509
mov dword [eax + 0xb20038], ecx
mov edx, dword [str.action_jester.bik]
push str.Random_Events13.wav
push edx
push 0xd
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov ecx, dword [edx*8 + 0xb214bc]
test ecx, ecx
je 0x48f5ab
mov ecx, dword [ebp + 0x43cc]
push ecx
push eax
mov ecx, 0x143b720
call fcn.0040d210
mov eax, dword [ebp + 0x43cc]
push str.general_message3.wav
cmp eax, 0x64
jne 0x48f589
mov edx, dword [str.action_steal_bread.bik]
push edx
push 0x10
jmp 0x48f591
mov eax, dword [str.action_steal_bread.bik]
push eax
push 0xe
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48f5d3
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48f602
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0x12b11ac]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea ecx, [eax + ecx*8]
lea edx, [ecx + ecx*2]
mov word [edx*8 + 0xb216aa], 8
mov ecx, dword [ebp + 0x43cc]
push ecx
push eax
mov ecx, 0x143b720
call fcn.00410da0
mov edx, dword [0x12b11ac]
push 0x1b
push edx
mov ecx, 0x143b720
call fcn.0040a420
test eax, eax
push str.general_message3.wav
je 0x48f6be
mov eax, dword [str.action_fire.bik]
push eax
push 0xf
jmp 0x48f6c7
mov ecx, dword [str.action_fire.bik]
push ecx
push 0x11
push 0xc9
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov al, byte [ebp + 0x43d6]
test al, al
je case.0x48dd11.10
mov al, byte [ebp + 0x43d7]
cmp al, 1
je case.0x48dd11.10
cmp al, 0xa
je 0x48f709
dec al
mov byte [ebp + 0x43d7], al
xor ecx, ecx
mov word [ebp + 0x43c8], 0
mov cl, byte [ebp + 0x43d6]
cmp ecx, 4
jl 0x48f738
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
movsx eax, word [0xc6baa2]
cdq
sar esi, 2
idiv esi
add ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0xb2d51c]
add eax, edx
lea edx, [edx + edx*2]
mov dword [ebp + 0x43c0], eax
mov eax, dword [0xb2d518]
shl edx, 2
sub eax, edx
add eax, ecx
cmp eax, 0xc
mov dword [ebp + 0x43bc], eax
jl 0x48f785
add eax, 0xfffffff4
mov dword [ebp + 0x43bc], eax
mov eax, dword [ebp + 0x43c0]
inc eax
mov dword [ebp + 0x43c0], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x14], eax
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [0xb08954]
test eax, eax
jne 0x48f9da
cmp dword [0xb08938], 8
jne 0x48f8d5
mov eax, dword [0xb0898c]
test eax, eax
jne 0x48f85d
movsx ecx, word [ebp + 0x43f4]
mov edx, dword [0x12b11ac]
push 0
push ecx
push 0xe
push edx
mov ecx, 0x143b720
call fcn.0040cc20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [0xb0898c], 1
lea esi, [eax + 1]
mov eax, dword [ecx + 0x43b8]
cmp esi, eax
jge 0x48f8d5
mov edx, esi
mov edi, ecx
imul edx, edx, 0xbc
lea eax, [edx + edi + 0x43c0]
mov edx, dword [eax]
cmp edx, 0x5dc
jl 0x48f84b
mov ebx, dword [0xb2d51c]
mov ecx, dword [eax - 4]
lea edx, [edx + ebx - 0x5dc]
mov dword [eax], edx
mov edx, dword [0xb2d518]
add ecx, edx
cmp ecx, 0xc
mov dword [eax - 4], ecx
jl 0x48f84b
add ecx, 0xfffffff4
mov dword [eax - 4], ecx
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov ecx, dword [edi + 0x43b8]
inc esi
add eax, 0xbc
cmp esi, ecx
jl 0x48f814
jmp 0x48f8d5
mov eax, dword [0x12b11ac]
mov ecx, dword [0xb2fc1c]
mov edx, dword [0xb2fc18]
push 0x14
push 0x14
push 0x18
push 0x16
push eax
push ecx
mov ebp, 3
xor edi, edi
push edx
push ebp
push edi
mov ecx, 0x14eafc0
call fcn.004e10b0
mov ebx, eax
mov esi, ebx
shl esi, 6
add esi, ebx
shl esi, 3
mov word [esi + 0x14eb19a], 2
cmp word [esi + 0x14eb01c], di
jle 0x48f8d5
mov eax, edi
mov ecx, 0x14eafc0
push eax
push ebx
inc edi
call fcn.004e0560
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [eax + ecx*4]
movsx eax, word [esi + 0x14eb01c]
cmp edi, eax
mov dword [edx*4 + 0x12bc5b0], ebp
jl 0x48f8aa
cmp dword [0xb08938], 0x14
jne case.0x48dd11.10
mov ecx, dword [0x12b11ac]
mov edx, dword [0xb2fc1c]
mov eax, dword [0xb2fc18]
xor edi, edi
push edi
push 0x14
push edi
push 0x1c
push ecx
push edx
push eax
push 0xa
push edi
mov ecx, 0x14eafc0
call fcn.004e10b0
mov ebx, eax
mov dword [esp + 0x24], eax
shl ebx, 6
add ebx, eax
shl ebx, 3
mov word [ebx + 0x14eb19a], di
cmp word [ebx + 0x14eb01c], di
jle case.0x48dd11.10
mov ebp, 0x608a58
mov dword [esp + 0x1c], edi
sub ebp, 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, edi
add edx, 3
push eax
push ecx
mov ecx, 0x14eafc0
inc edi
mov dword [esp + 0x24], edx
add ebp, 8
call fcn.004e0560
mov esi, eax
mov eax, dword [0x12b11ac]
mov edx, eax
push 0
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
shl eax, 3
mov ecx, dword [eax + 0xb201b4]
mov edx, dword [eax + 0xb201b0]
push ecx
push edx
push esi
mov ecx, 0x12bc308
call fcn.005218e0
mov eax, dword [esp + 0x1c]
mov ecx, 0x12bc308
push eax
push esi
call fcn.00521f40
mov ecx, esi
mov dx, word [ebp]
shl ecx, 6
add ecx, esi
lea eax, [esi + ecx*4]
shl eax, 2
mov word [eax + 0x12bc860], 0x65
mov word [eax + 0x12bc694], dx
movsx eax, word [ebx + 0x14eb01c]
cmp edi, eax
jl 0x48f939
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
cmp dword [ebp + 0x43c0], 0x43d
jne case.0x48dd11.10
cmp dword [ebp + 0x43bc], 0xb
jne case.0x48dd11.10
mov ecx, dword [0x12b11ac]
push 0x14
push 0x16
push ecx
push 0x116
xor edi, edi
push 0x85
push 3
push edi
mov ecx, 0x14eafc0
call fcn.004e11f0
mov ebx, eax
mov esi, ebx
shl esi, 6
add esi, ebx
shl esi, 3
mov word [esi + 0x14eb19a], 3
cmp word [esi + 0x14eb01c], di
jle case.0x48dd11.10
mov ebp, 6
mov eax, edi
mov ecx, 0x14eafc0
push eax
push ebx
inc edi
call fcn.004e0560
movsx ecx, word [esi + 0x14eb01c]
mov edx, eax
shl edx, 6
add edx, eax
cmp edi, ecx
lea eax, [eax + edx*4]
mov dword [eax*4 + 0x12bc5b0], ebp
jl 0x48fa42
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [esp + 0x18]
mov dword [0xb089c0], 1
call fcn.00497340
jmp 0x48ffe3
mov ecx, dword [esp + 0x18]
mov dword [0xb089c0], 0
call fcn.00497340
jmp 0x48ffe3
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [edx + 0x43b8]
test eax, eax
jle case.0x48dd11.10
mov eax, edx
add eax, 0x441c
mov esi, dword [eax - 0x58]
mov edx, 1
cmp esi, edx
jne 0x48fae4
cmp dword [eax], 0
je 0x48fae4
mov dword [eax], 0
mov word [eax - 0x54], dx
mov dword [eax - 0x5c], 0x42a
mov edx, dword [esp + 0x18]
inc ecx
add eax, 0xbc
cmp ecx, dword [edx + 0x43b8]
jl 0x48fac2
mov ecx, dword [esp + 0x18]
call fcn.00497340
jmp 0x48ffe3
mov eax, dword [ebp + 0x43cc]
mov ecx, ebx
push eax
call fcn.00491470
mov ecx, dword [ebp + 0x43cc]
push ecx
mov ecx, ebx
call fcn.004914a0
mov word [ebp + 0x43c8], 1
jmp 0x48ffe7
mov eax, dword [0x12b11ac]
mov dword [0xb2f970], 0
mov edx, eax
shl edx, 5
sub edx, eax
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
mov dword [eax*8 + 0xb2166c], 0xffffff38
mov ecx, dword [ebp + 0x4420]
mov eax, dword [esp + ecx*4 + 0xb8]
cmp eax, 0xffffffff
jne 0x48fbb0
mov eax, dword [0x11a28b4]
inc eax
cmp eax, 0x32
mov dword [0x11a28b4], eax
jl 0x48fb81
mov dword [0x11a28b4], 1
mov edx, dword [ebp + 0x4414]
mov eax, dword [0x11a28b4]
push edx
push eax
mov ecx, 0x11721b0
call fcn.004d2d30
mov ecx, dword [ebp + 0x4420]
mov eax, dword [0x11a28b4]
mov dword [esp + 0x30], eax
mov dword [esp + ecx*4 + 0xb8], eax
jmp 0x48fbb5
mov dword [0x11a28b4], eax
mov dl, byte [ebp + 0x4420]
mov dword [esp + 0x24], 0
add dl, 2
mov byte [eax + 0x11a2aac], dl
mov eax, dword [esp + 0x14]
imul eax, eax, 0x2f
add eax, 0x10f4
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add ecx, edx
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x48fe45
mov eax, edx
xor esi, esi
xor edi, edi
xor ecx, ecx
cmp eax, 0xf
ja case.default.0x48fc06
jmp dword [eax*4 + 0x4902e8]
mov esi, 3
mov edi, 0x16
jmp 0x48fcda
mov esi, 7
mov edi, 0x17
jmp 0x48fcda
mov esi, 5
mov edi, 0x18
jmp 0x48fcda
mov esi, 6
mov edi, 0x19
jmp 0x48fcda
mov esi, 9
mov edi, 0x1a
jmp 0x48fcda
mov esi, 8
mov edi, 0x1b
jmp 0x48fcda
mov esi, 0xa
mov edi, 0x1c
jmp 0x48fcda
mov esi, 4
mov edi, 0x1d
jmp 0x48fcda
mov esi, 0xb
mov edi, 0x1e
jmp 0x48fcda
mov esi, 0x16
mov edi, 0x27
jmp 0x48fcda
mov esi, 0x17
mov edi, 0x28
jmp 0x48fcda
mov esi, 0x13
mov edi, 0x3b
jmp 0x48fcda
mov esi, 0x14
mov edi, 0x3a
jmp 0x48fcda
mov esi, 0x15
mov edi, 0x3c
jmp 0x48fcda
mov esi, 0xc
mov edi, 0x25
jmp 0x48fcda
mov esi, 2
mov edi, 5
mov ecx, 0xa
mov edx, dword [0xb2dfa8]
mov eax, 0x64
sub edx, 0
je 0x48fd05
sub edx, 2
je 0x48fcfe
dec edx
jne 0x48fd0a
mov eax, 0xc8
jmp 0x48fd0a
mov eax, 0x8c
jmp 0x48fd0a
mov eax, 0x32
imul eax, ebx
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp esi, 0x16
mov ebx, edx
jne 0x48fd3b
mov eax, dword [0x11a28b4]
lea eax, [eax + eax*4]
add byte [eax*2 + 0x11a2ade], bl
jmp 0x48fe45
cmp esi, 0x17
jne 0x48fd54
mov eax, dword [0x11a28b4]
lea eax, [eax + eax*4]
add byte [eax*2 + 0x11a2adf], bl
jmp 0x48fe45
cmp esi, 0x13
jne 0x48fd6d
mov eax, dword [0x11a28b4]
lea eax, [eax + eax*4]
add byte [eax*2 + 0x11a2ae0], bl
jmp 0x48fe45
cmp esi, 0x14
jne 0x48fd86
mov eax, dword [0x11a28b4]
lea eax, [eax + eax*4]
add byte [eax*2 + 0x11a2ae1], bl
jmp 0x48fe45
cmp esi, 0x15
jne 0x48fd9f
mov eax, dword [0x11a28b4]
lea eax, [eax + eax*4]
add byte [eax*2 + 0x11a2ae2], bl
jmp 0x48fe45
mov eax, ebx
cdq
idiv ecx
mov ecx, eax
mov eax, ebx
cdq
inc ecx
idiv ecx
test ebx, ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
jle 0x48fe45
cmp ebp, ebx
jle 0x48fdc2
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x20]
push 0
mov ecx, dword [edx + 0x4420]
mov edx, dword [esp + ecx*4 + 0xe0]
add ecx, 2
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xd8], eax
mov eax, dword [0x11a28b4]
mov eax, dword [eax*4 + 0x11b8a60]
lea ebp, [eax + eax*2]
lea eax, [eax + ebp*8]
mov ebp, dword [esp + 0x38]
lea eax, [ebp + eax*2]
mov ebp, dword [esp + 0x20]
push ebp
push 0
shl eax, 4
push edi
push ecx
mov ecx, dword [eax + 0xb2fc1c]
mov eax, dword [eax + 0xb2fc18]
push ecx
push eax
push esi
push edx
mov ecx, 0x14eafc0
call fcn.004e10b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
sub ebx, ebp
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x48fe3d
mov dword [esp + 0x34], 0
test ebx, ebx
jg 0x48fdba
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x11
mov dword [esp + 0x24], eax
jl 0x48fbdc
mov ecx, dword [0x11a28b4]
mov eax, dword [ecx*4 + 0x11b8a60]
mov ecx, 0xa5ca68
shl eax, 4
mov edx, dword [eax + 0xb2fb1c]
mov eax, dword [eax + 0xb2fb18]
push edx
push eax
call fcn.0048c240
mov eax, dword [0xb089c0]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov dword [0x11a28b4], ecx
test eax, eax
jne 0x48ff61
mov eax, dword [esi + 0x4420]
mov ecx, dword [esp + eax*4 + 0x94]
test ecx, ecx
jne 0x48ff61
cmp eax, 3
mov dword [esp + eax*4 + 0x94], 1
ja case.default.0x48febf
jmp dword [eax*4 + 0x490328]
push str.rat_attack.wav
push str.rat_attack.bik
jmp 0x48fef4
push str.snake_attack.wav
push str.snake_attack.bik
jmp 0x48fef4
push str.pig_attack.wav
push str.pig_attack.bik
jmp 0x48fef4
push str.wolf_attack.wav
push str.wolf_attack.bik
push 0x6219a4
mov ecx, 0xc7c760
call fcn.00491670
cmp dword [0xb08908], 0xe
jne 0x48ff61
mov eax, dword [0xb0890c]
cmp eax, 0x3c
je 0x48ff1b
cmp eax, 0x3e
jne 0x48ff61
mov ecx, 0xb08900
call fcn.0045cf70
mov eax, dword [0xb08920]
cmp eax, 0x3c
mov eax, dword [0xb08908]
jne 0x48ff54
cmp eax, 0xe
jne 0x48ff45
mov dword [0xb08920], 0xa
jmp 0x48ff54
cmp eax, 0xc
jne 0x48ff54
mov dword [0xb08928], 0xe7
push 0
push eax
mov ecx, 0xb08900
call fcn.0045cf90
mov eax, dword [esi + 0x441c]
test eax, eax
jne 0x48ff76
mov word [esi + 0x43c8], 1
jmp 0x48ffe3
mov word [esi + 0x43ca], 0
mov ecx, dword [esi + 0x441c]
mov eax, 0x2aaaaaab
mov ebp, dword [esi + 0x43c0]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
add ebp, edx
lea edx, [edx + edx*2]
mov dword [esi + 0x43c0], ebp
shl edx, 2
sub ecx, edx
mov edx, dword [esi + 0x43bc]
add edx, ecx
mov eax, edx
mov dword [esi + 0x43bc], edx
cmp eax, 0xc
jl 0x48ffd6
add eax, 0xfffffff4
mov dword [esi + 0x43bc], eax
mov eax, dword [esi + 0x43c0]
inc eax
mov dword [esi + 0x43c0], eax
mov ecx, dword [esp + 0x18]
call fcn.00497340
dec dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x43b8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x48d28a
mov eax, dword [0xb2d51c]
mov ecx, dword [0xb2d518]
mov dword [esp + 0x2c], eax
lea eax, [ecx + 3]
cmp eax, 0xc
mov dword [esp + 0x30], eax
jl 0x490029
sub eax, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x18]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x43b8]
xor ebp, ebp
test eax, eax
jle 0x49016c
add ebx, 0x43ca
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx - 0xa]
cmp edx, eax
jne case.default.0x4900f9
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx - 0xe]
cmp eax, ecx
jne case.default.0x4900f9
cmp word [ebx], 0
jne case.default.0x4900f9
mov word [ebx], 1
mov eax, dword [ebx - 6]
dec eax
jne case.default.0x4900f9
mov eax, dword [0xb089c0]
mov dword [0xb2f970], 1
test eax, eax
jne case.default.0x4900f9
mov edi, dword [ebx + 0x56]
mov eax, dword [esp + edi*4 + 0x94]
test eax, eax
jne case.default.0x4900f9
lea eax, [edi*4 + 1]
xor ecx, ecx
lea edx, [ebx + 6]
mov esi, 0x11
add ecx, dword [edx]
add edx, 4
dec esi
jne 0x4900c4
cmp ecx, 0x19
jl 0x4900e9
cmp ecx, 0x4b
jge 0x4900d9
inc eax
jmp 0x4900e9
cmp ecx, 0x96
jge 0x4900e6
add eax, 2
jmp 0x4900e9
add eax, 3
cmp edi, 3
mov dword [esp + edi*4 + 0x94], 1
ja case.default.0x4900f9
jmp dword [edi*4 + 0x490338]
mov ecx, dword [eax*4 + 0x5f80fc]
push ecx
push str.rat_attack.bik
jmp 0x49013a
mov edx, dword [eax*4 + 0x5f80fc]
push edx
push str.snake_attack.bik
jmp 0x49013a
mov ecx, dword [eax*4 + 0x5f80fc]
push ecx
push str.pig_attack.bik
jmp 0x49013a
mov edx, dword [eax*4 + 0x5f80fc]
push edx
push str.wolf_attack.bik
push eax
push 0xc6
mov ecx, 0xabe628
call fcn.0045bd60
push eax
mov ecx, 0xc7c760
call fcn.00491670
mov eax, dword [esp + 0x18]
inc ebp
add ebx, 0xbc
cmp ebp, dword [eax + 0x43b8]
jl 0x490053
cmp dword [0xb31f18], 0x97
jne 0x4901d9
cmp dword [0xb2d514], 3
jne 0x4901d9
mov ecx, dword [0xb2d518]
mov edi, dword [0xb2d51c]
lea esi, [ecx + 1]
cmp esi, 0xc
jl 0x490199
sub esi, 0xc
inc edi
mov ebx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ebx + 0x43b8]
test eax, eax
jle 0x4901d9
lea eax, [ebx + 0x43bc]
mov ebp, 0x28
cmp edi, dword [eax + 4]
jne 0x4901c9
cmp esi, dword [eax]
jne 0x4901c9
mov ecx, dword [eax + 8]
dec ecx
jne 0x4901c9
mov dword [0xb2f93c], ebp
mov ecx, dword [ebx + 0x43b8]
inc edx
add eax, 0xbc
cmp edx, ecx
jl 0x4901b4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret