Function at 0x4c4638
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c5990
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
cmp word [ebx + 0x1e], 1
jne 0x4c4695
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fild dword [ebx + 0xc]
fdiv dword [0x4c59a0]
fmulp st(1)
call fcn.00403494
mov dword [ebp - 0x34], eax
jmp 0x4c46ab
fild dword [ebp + 0x10]
fild dword [ebx + 0xc]
fdiv dword [0x4c59a0]
fmulp st(1)
call fcn.00403494
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0xc], 4
jne 0x4c46b7
test byte [ebp + 0x10], 1
jne 0x4c46d0
cmp dword [ebx + 0xc], 1
jne 0x4c46d3
mov eax, dword [ebp + 0x10]
and eax, 0x80000007
jns 0x4c46cc
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x4c46d3
inc dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x40], eax
cmp word [ebx + 0x22], 7
jne 0x4c486f
cmp dword [ebx + 0x6c], 0
jne 0x4c486f
mov dl, 1
mov eax, dword [0x41a8a8]
call fcn.004043c4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.0041f334
mov dl, 1
mov eax, dword [0x54eea8]
call fcn.005543c8
mov esi, eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x18]
cmp dword [ebx + 0x28], 1
je 0x4c473f
cmp dword [ebx + 0x38], 1
jne 0x4c4755
mov eax, dword [ebp + 8]
push esi
mov esi, eax
lea edi, [ebp - 0x88]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4c479d
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4786
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00403494
mov ecx, eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [edi + 4]
call dword [edi]
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x4d], 0
mov eax, dword [ebx + 0x174]
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebx + 0x174]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
mov al, byte [ebp - 0x4d]
push eax
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.00537364
mov eax, dword [ebx + 0x174]
mov edx, edi
call fcn.0052e24c
mov eax, dword [ebx + 0x174]
mov edx, dword [ebp - 0x54]
call fcn.0052e260
mov eax, dword [ebp - 0x60]
cmp byte [eax], 0
jne 0x4c485b
cmp byte [ebp - 0x4d], 0
je 0x4c4835
mov eax, esi
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x4c4835
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0051e8b8
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c4810
push 0
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005570c4
mov eax, esi
call fcn.004043f4
mov eax, dword [ebp - 0x48]
call fcn.004043f4
jmp 0x4c5963
cmp word [ebx + 0x22], 7
jne 0x4c4a13
cmp dword [ebx + 0x6c], 0
je 0x4c4a13
mov dl, 1
mov eax, dword [0x41a8a8]
call fcn.004043c4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x48]
call fcn.0041f334
mov dl, 1
mov eax, dword [0x41a8a8]
call fcn.004043c4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.0041f334
mov dl, 1
mov eax, dword [0x54eea8]
call fcn.005543c8
mov esi, eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x18]
cmp dword [ebx + 0x28], 1
je 0x4c48ff
cmp dword [ebx + 0x38], 1
jne 0x4c4915
mov eax, dword [ebp + 8]
push esi
mov esi, eax
lea edi, [ebp - 0x88]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4c495d
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4946
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00403494
mov ecx, eax
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [edi + 4]
call dword [edi]
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x60], eax
cmp word [ebx + 0x1c], 2
sete byte [ebp - 0x4d]
lea eax, [ebx + 0x174]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
mov al, byte [ebp - 0x4d]
push eax
mov ecx, esi
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
call fcn.00537364
mov eax, dword [ebp - 0x60]
cmp byte [eax], 0
jne 0x4c49f7
cmp byte [ebp - 0x4d], 0
je 0x4c49d1
mov eax, esi
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x4c49d1
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0051e8b8
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c49ac
push 0
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005570c4
mov eax, esi
call fcn.004043f4
mov eax, dword [ebp - 0x48]
call fcn.004043f4
mov eax, dword [ebp - 0x4c]
call fcn.004043f4
jmp 0x4c5963
cmp word [ebx + 0x1c], 2
jne 0x4c4bed
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x4c4a2f
cmp eax, 4
jne 0x4c4bed
cmp dword [ebx + 0xc], 8
jne 0x4c4bed
cmp dword [ebx + 8], 4
jne 0x4c4a48
cmp dword [ebx + 0x180], 2
je 0x4c4a55
cmp dword [ebx + 8], 4
jne 0x4c4a5e
cmp word [ebx + 0x1c], 2
jne 0x4c4a5e
cmp byte [ebx + 0x17c], 0
je 0x4c4a62
xor eax, eax
jmp 0x4c4a64
mov al, 1
mov byte [ebp - 0x41], al
cmp byte [ebp - 0x41], 0
je 0x4c4a77
mov eax, dword [ebx + 0x178]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x4c4a8c
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c4bd5
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c4bbe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
cmp byte [ebp - 0x41], 0
je 0x4c4b4a
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4b80
inc esi
xor edi, edi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov cx, word [edx]
mov word [eax], cx
mov cl, byte [edx + 2]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 2
call fcn.0051667c
add dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.00551480
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 3
inc edi
dec esi
jne 0x4c4aff
jmp 0x4c4b80
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4b80
inc esi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov cx, word [edx]
mov word [eax], cx
mov cl, byte [edx + 2]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 2
call fcn.0051667c
mov eax, dword [ebx + 8]
add dword [ebp - 0x20], eax
add dword [ebp - 0x14], 3
dec esi
jne 0x4c4b53
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4bb1
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c4bd5
jmp 0x4c4bc9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c4bd5
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c4aa3
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 2
jne 0x4c4d8e
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x4c4c09
cmp eax, 4
jne 0x4c4d8e
cmp dword [ebx + 0xc], 0x10
jne 0x4c4d8e
cmp word [ebx + 0x22], 1
je 0x4c4c2a
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
add eax, eax
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c4d76
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c4d5f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
cmp byte [ebx + 0x170], 0
jne 0x4c4cd9
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4d21
inc esi
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 0x14]
mov byte [edx], al
add dword [ebp - 0x18], 2
add dword [ebp - 0x14], 3
dec esi
jne 0x4c4c9e
jmp 0x4c4d21
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4d21
inc esi
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
shr eax, 8
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
shr eax, 8
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
shr eax, 8
mov edx, dword [ebp - 0x14]
mov byte [edx], al
add dword [ebp - 0x18], 2
add dword [ebp - 0x14], 3
dec esi
jne 0x4c4ce2
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4d52
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c4d76
jmp 0x4c4d6a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c4d76
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c4c41
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 2
jne 0x4c4ed6
cmp dword [ebx + 8], 1
jne 0x4c4ed6
cmp dword [ebx + 0xc], 0x10
jne 0x4c4ed6
cmp word [ebx + 0x22], 1
je 0x4c4dc2
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c4ebe
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c4ea7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4e69
inc esi
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
shr eax, 0xa
shl eax, 3
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
shr eax, 5
and al, 0x1f
shl eax, 3
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
and al, 0x1f
shl eax, 3
mov edx, dword [ebp - 0x14]
mov byte [edx], al
add dword [ebp - 0x20], 2
add dword [ebp - 0x14], 3
dec esi
jne 0x4c4e29
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4e9a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c4ebe
jmp 0x4c4eb2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c4ebe
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c4dd9
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 3
jne 0x4c517a
cmp dword [ebx + 0xc], 8
jg 0x4c517a
cmp dword [ebx + 8], 2
jne 0x4c5035
cmp dword [ebx + 0xc], 8
jne 0x4c5035
cmp word [ebx + 0x22], 1
je 0x4c4f13
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c501d
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c5006
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c4fc8
inc esi
xor edi, edi
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x14]
add edx, eax
mov ax, word [edx]
mov word [ecx], ax
mov al, byte [edx + 2]
mov byte [ecx + 2], al
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
push edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.00551480
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 3
inc edi
dec esi
jne 0x4c4f7c
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c4ff9
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c501d
jmp 0x4c5011
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c501d
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c4f2a
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x22], 1
jne 0x4c5042
cmp dword [ebx + 0xc], 8
jge 0x4c504d
mov eax, dword [ebp + 0x10]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c515c
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c5145
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x4c50d5
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c5107
inc esi
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec esi
jne 0x4c50c0
jmp 0x4c5107
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c5107
inc esi
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x14]
mov edi, ecx
mov cx, word [edx + eax]
mov word [edi], cx
mov cl, byte [edx + eax + 2]
mov byte [edi + 2], cl
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 3
dec esi
jne 0x4c50de
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c5138
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c515c
jmp 0x4c5150
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c515c
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c5064
cmp word [ebx + 0x22], 1
jne 0x4c516d
cmp dword [ebx + 0xc], 8
jge 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 1
ja 0x4c5325
cmp dword [ebx + 8], 1
jne 0x4c5325
cmp dword [ebx + 0xc], 8
je 0x4c519f
cmp dword [ebx + 0xc], 4
jne 0x4c5325
cmp word [ebx + 0x22], 1
jne 0x4c51ac
cmp dword [ebx + 0xc], 4
jne 0x4c51b7
mov eax, dword [ebp + 0x10]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c5307
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c52f0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x4c5243
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c52b2
inc esi
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec esi
jne 0x4c522e
jmp 0x4c52b2
cmp word [ebx + 0x1c], 0
jne 0x4c527f
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c52b2
inc esi
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
mov edi, 0xff
sub edi, eax
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 3
dec esi
jne 0x4c5253
jmp 0x4c52b2
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c52b2
inc esi
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 3
dec esi
jne 0x4c5288
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c52e3
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c5307
jmp 0x4c52fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c5307
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c51ce
cmp word [ebx + 0x22], 1
jne 0x4c5318
cmp dword [ebx + 0xc], 4
jne 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 1
ja 0x4c55aa
cmp dword [ebx + 8], 1
jne 0x4c55aa
cmp dword [ebx + 0xc], 0x10
jne 0x4c55aa
cmp word [ebx + 0x22], 1
je 0x4c5358
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c5592
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c557b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00405784
mov eax, dword [ebp - 0x90]
mov edx, 0x4c59ac
call fcn.00405670
jne 0x4c53ed
mov dword [ebp - 0x10], 4
jmp 0x4c53f4
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x4c5490
cmp word [ebx + 0x1c], 0
jne 0x4c5451
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c553d
inc esi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.004c329c
mov edi, eax
mov eax, dword [ebp - 0x30]
mov word [eax], di
mov ax, 0xffff
sub ax, di
mov edx, dword [ebp - 0x14]
mov word [edx], ax
add dword [ebp - 0x30], 2
add dword [ebp - 0x14], 2
dec esi
jne 0x4c5418
jmp 0x4c553d
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c553d
inc esi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.004c329c
mov edi, eax
mov eax, dword [ebp - 0x30]
mov word [eax], di
mov eax, dword [ebp - 0x14]
mov word [eax], di
add dword [ebp - 0x30], 2
add dword [ebp - 0x14], 2
dec esi
jne 0x4c545e
jmp 0x4c553d
cmp word [ebx + 0x1c], 0
jne 0x4c54f1
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c553d
inc esi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.004c329c
mov edi, eax
mov eax, dword [ebp - 0x30]
mov word [eax], di
mov ecx, dword [ebp - 0x10]
movzx eax, di
mov edx, 0xffff
sub edx, eax
shr edx, cl
mov edi, edx
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov edx, dword [ebp - 0x14]
mov byte [edx], al
add dword [ebp - 0x30], 2
add dword [ebp - 0x14], 3
dec esi
jne 0x4c54a4
jmp 0x4c553d
mov esi, dword [ebp + 0x10]
dec esi
test esi, esi
jl 0x4c553d
inc esi
mov dl, byte [ebx + 0x170]
xor dl, 1
mov eax, dword [ebp - 0x30]
mov ax, word [eax]
call fcn.004c329c
mov edx, dword [ebp - 0x30]
mov word [edx], ax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
movzx edi, word [eax]
shr edi, cl
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], al
mov edx, dword [ebp - 0x14]
mov byte [edx + 1], al
mov edx, dword [ebp - 0x14]
mov byte [edx], al
add dword [ebp - 0x30], 2
add dword [ebp - 0x14], 3
dec esi
jne 0x4c54fa
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c556e
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c5592
jmp 0x4c5586
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c5592
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c536f
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 1
ja 0x4c572a
cmp dword [ebx + 8], 1
jne 0x4c572a
cmp dword [ebx + 0xc], 1
jne 0x4c572a
mov eax, dword [ebp + 0x10]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
call fcn.00402e50
mov dword [ebp - 0x24], eax
mov cl, 0xff
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
call fcn.00408578
xor eax, eax
mov dword [ebp - 0x38], eax
cmp word [ebx + 0x1c], 0
jne 0x4c5606
cmp word [ebx + 0x22], 1
je 0x4c561b
cmp word [ebx + 0x22], 5
jae 0x4c561b
cmp word [ebx + 0x1c], 1
jne 0x4c5621
cmp word [ebx + 0x22], 2
jbe 0x4c5621
cmp word [ebx + 0x22], 4
jae 0x4c5621
mov byte [ebp - 0x39], 1
jmp 0x4c5625
mov byte [ebp - 0x39], 0
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c5715
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c56fe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x39]
sub al, 1
jb 0x4c56b2
jne 0x4c56c0
mov esi, dword [ebp - 0x34]
dec esi
test esi, esi
jl 0x4c56c0
inc esi
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
not al
mov edx, dword [ebp - 0x28]
mov byte [edx], al
inc dword [ebp - 0x20]
inc dword [ebp - 0x28]
dec esi
jne 0x4c569b
jmp 0x4c56c0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.00408570
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c56f1
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c5715
jmp 0x4c5709
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c5715
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c563c
mov eax, dword [ebp - 0x24]
call fcn.00402e80
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 5
jne 0x4c585f
cmp dword [ebx + 8], 4
jne 0x4c585f
cmp dword [ebx + 0xc], 8
jne 0x4c585f
cmp word [ebx + 0x22], 1
je 0x4c575e
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c5847
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c5830
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 0x10]
shl esi, 2
dec esi
test esi, esi
jl 0x4c57da
inc esi
mov eax, dword [ebp - 0x2c]
mov dl, 0xff
sub dl, byte [eax]
mov eax, dword [ebp - 0x2c]
mov byte [eax], dl
inc dword [ebp - 0x2c]
dec esi
jne 0x4c57c8
push 0
mov eax, dword [ebp + 0x10]
push eax
mov esi, dword [0x592498]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [ebp - 0x1c]
call esi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c5823
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c5847
jmp 0x4c583b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c5847
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c5775
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
jmp 0x4c5963
cmp word [ebx + 0x1c], 8
jne 0x4c5963
cmp dword [ebx + 8], 3
jne 0x4c5963
cmp dword [ebx + 0xc], 8
jne 0x4c5963
cmp word [ebx + 0x22], 1
je 0x4c5893
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
call fcn.00402e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4c5954
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp + 0x18]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
call fcn.004c4058
test al, al
je 0x4c593d
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov esi, dword [0x592498]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x14]
mov dl, 2
mov eax, dword [ebp - 0x1c]
call esi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4c5930
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00403494
mov ecx, eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov eax, dword [esi + 4]
call dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp byte [eax], 0
jne 0x4c5954
jmp 0x4c5948
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4c5954
inc dword [ebp - 0xc]
dec dword [ebp - 0x58]
jne 0x4c58aa
cmp word [ebx + 0x22], 1
je 0x4c5963
mov eax, dword [ebp - 0x1c]
call fcn.00402e80
cmp word [ebx + 0x22], 5
jne 0x4c5977
lea ecx, [ebp - 0x40]
xor edx, edx
xor eax, eax
call dword [ebx + 0x16c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5997
lea eax, [ebp - 0x90]
call fcn.00405264
ret