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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4de8a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x6c], eax
cmp word [ebx + 0x1e], 1
jne 0x4dc7c5
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
mov dword [ebp - 0xa4], eax
fild dword [ebp - 0xa4]
fild dword [ebx + 0xc]
fdiv dword [0x4de8b8]
fmulp st(1)
call fcn.00402f84
mov dword [ebp - 0x3c], eax
jmp 0x4dc7db
fild dword [ebp + 0x10]
fild dword [ebx + 0xc]
fdiv dword [0x4de8b8]
fmulp st(1)
call fcn.00402f84
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0xc], 4
jne 0x4dc7e7
test byte [ebp + 0x10], 1
jne 0x4dc800
cmp dword [ebx + 0xc], 1
jne 0x4dc803
mov eax, dword [ebp + 0x10]
and eax, 0x80000007
jns 0x4dc7fc
dec eax
or eax, 0xfffffff8
inc eax
test eax, eax
je 0x4dc803
inc dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x48], eax
cmp word [ebx + 0x22], 7
jne 0x4dc9a7
cmp dword [ebx + 0x6c], 0
jne 0x4dc9a7
mov dl, 1
mov eax, dword [0x41b968]
call fcn.00403cf4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x50]
call fcn.0042025c
mov dl, 1
mov eax, dword [0x595da4]
call fcn.0059eae0
mov dword [ebp - 0x58], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x4dc871
cmp dword [ebx + 0x38], 1
jne 0x4dc885
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0xa0]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x4dc8cd
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dc8b6
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402f84
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]
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x59], 0
mov eax, dword [ebx + 0x178]
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
lea eax, [ebx + 0x178]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
mov al, byte [ebp - 0x59]
push eax
push 0
push 1
push 0
push 1
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 0x50]
call fcn.004be534
mov eax, dword [ebx + 0x178]
mov edx, esi
call fcn.00588df0
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.00588e20
mov eax, dword [ebp - 0x78]
cmp byte [eax], 0
jne 0x4dc992
cmp byte [ebp - 0x59], 0
je 0x4dc96b
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x4dc96b
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.00566da8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dc946
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, dword [ebp - 0x58]
call fcn.005a26dc
mov eax, dword [ebp - 0x58]
call fcn.00403d24
mov eax, dword [ebp - 0x50]
call fcn.00403d24
jmp 0x4de85f
cmp word [ebx + 0x22], 7
jne 0x4dcb52
cmp dword [ebx + 0x6c], 0
je 0x4dcb52
mov dl, 1
mov eax, dword [0x41b968]
call fcn.00403cf4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x50]
call fcn.0042025c
mov dl, 1
mov eax, dword [0x41b968]
call fcn.00403cf4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebp - 0x54]
mov esi, dword [eax]
call dword [esi + 0xc]
push 0
push 0
mov eax, dword [ebp - 0x54]
call fcn.0042025c
mov dl, 1
mov eax, dword [0x595da4]
call fcn.0059eae0
mov dword [ebp - 0x58], eax
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
call dword [esi + 0x24]
cmp dword [ebx + 0x28], 1
je 0x4dca39
cmp dword [ebx + 0x38], 1
jne 0x4dca4d
mov eax, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0xa0]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x4dca95
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dca7e
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x20]
call fcn.00402f84
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]
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x59], 0
lea eax, [ebx + 0x178]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
mov al, byte [ebp - 0x59]
push eax
push 0
push 1
push 0
push 1
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
call fcn.004be534
mov eax, dword [ebp - 0x78]
cmp byte [eax], 0
jne 0x4dcb35
cmp byte [ebp - 0x59], 0
je 0x4dcb0e
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
test eax, eax
jl 0x4dcb0e
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, esi
call fcn.00566da8
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dcae9
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, dword [ebp - 0x58]
call fcn.005a26dc
mov eax, dword [ebp - 0x58]
call fcn.00403d24
mov eax, dword [ebp - 0x50]
call fcn.00403d24
mov eax, dword [ebp - 0x54]
call fcn.00403d24
jmp 0x4de85f
cmp word [ebx + 0x1c], 2
jne 0x4dcd28
cmp dword [ebx + 8], 3
je 0x4dcb6d
cmp dword [ebx + 8], 4
jne 0x4dcd28
cmp dword [ebx + 0xc], 8
jne 0x4dcd28
cmp dword [ebx + 8], 4
jne 0x4dcb86
cmp dword [ebx + 0x184], 2
je 0x4dcb93
cmp dword [ebx + 8], 4
jne 0x4dcb9c
cmp word [ebx + 0x1c], 2
jne 0x4dcb9c
cmp byte [ebx + 0x180], 0
je 0x4dcba0
xor eax, eax
jmp 0x4dcba2
mov al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x4dcbb5
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x4dcbca
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dcd10
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dccf9
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp byte [ebp - 0x49], 0
je 0x4dcc9d
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dccbb
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov dx, word [eax]
mov word [esi], dx
mov dl, byte [eax + 2]
mov byte [esi + 2], dl
mov edx, esi
lea eax, [esi + 2]
call fcn.0055e994
add dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.0059967c
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x4dcc57
jmp 0x4dccbb
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 0x24]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dccec
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dcd10
jmp 0x4dcd04
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dcd10
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dcbe1
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 2
jne 0x4dcfc8
cmp dword [ebx + 8], 3
je 0x4dcd43
cmp dword [ebx + 8], 4
jne 0x4dcfc8
cmp dword [ebx + 0xc], 0x10
jne 0x4dcfc8
cmp word [ebx + 0x22], 1
je 0x4dcd64
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dcfb0
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dcf99
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 8
jne 0x4dceb8
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 - 0x64], eax
mov eax, dword [ebp + 0x1c]
cdq
idiv dword [ebx + 8]
add eax, eax
lea eax, [eax + eax*2]
add dword [ebp - 0x64], eax
cmp byte [ebx + 0x174], 0
je 0x4dce54
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dcf5b
inc edi
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx + 2], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
mov edx, dword [ebp - 0x64]
mov word [edx + 4], ax
add dword [ebp - 0x1c], 2
cmp dword [ebx + 8], 4
jne 0x4dce48
add dword [ebp - 0x1c], 2
add dword [ebp - 0x64], 6
dec edi
jne 0x4dce0c
jmp 0x4dcf5b
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dcf5b
inc edi
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.00596f74
mov edx, dword [ebp - 0x64]
mov word [edx], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.00596f74
mov edx, dword [ebp - 0x64]
mov word [edx + 2], ax
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
call fcn.00596f74
mov edx, dword [ebp - 0x64]
mov word [edx + 4], ax
add dword [ebp - 0x1c], 2
cmp dword [ebx + 8], 4
jne 0x4dceac
add dword [ebp - 0x1c], 2
add dword [ebp - 0x64], 6
dec edi
jne 0x4dce61
jmp 0x4dcf5b
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp dword [ebx + 8], 4
jne 0x4dcf14
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dcf14
inc edi
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx], dx
add eax, 2
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx + 2], dx
add eax, 2
mov dx, word [eax]
mov ecx, dword [ebp - 0x64]
mov word [ecx + 4], dx
add eax, 2
add eax, 2
add dword [ebp - 0x64], 6
dec edi
jne 0x4dcee4
cmp byte [ebx + 0x174], 0
jne 0x4dcf3d
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 7
mov eax, dword [ebp - 0x1c]
call edi
jmp 0x4dcf5b
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 6
mov eax, dword [ebp - 0x1c]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dcf8c
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dcfb0
jmp 0x4dcfa4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dcfb0
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dcd7b
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 2
jne 0x4dd11f
cmp dword [ebx + 8], 1
jne 0x4dd11f
cmp dword [ebx + 0xc], 0x10
jne 0x4dd11f
cmp word [ebx + 0x22], 1
je 0x4dcffc
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd107
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd0f0
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd0b2
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
shr eax, 0xa
shl eax, 3
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
shr eax, 5
and al, 0x1f
shl eax, 3
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
and al, 0x1f
shl eax, 3
mov byte [esi], al
add dword [ebp - 0x24], 2
add esi, 3
dec edi
jne 0x4dd07c
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd0e3
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd107
jmp 0x4dd0fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd107
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd013
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 3
jne 0x4dd2a3
cmp dword [ebx + 0xc], 1
jne 0x4dd2a3
cmp dword [ebx + 8], 1
jne 0x4dd2a3
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd296
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd27f
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x4dd1f8
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd241
inc edi
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.0056526c
test eax, eax
je 0x4dd1ec
mov byte [esi], 1
jmp 0x4dd1ef
mov byte [esi], 0
inc esi
inc dword [ebp - 0x14]
dec edi
jne 0x4dd1d8
jmp 0x4dd241
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd241
inc edi
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
call fcn.0056526c
test eax, eax
je 0x4dd229
mov eax, dword [ebx + 0x44]
mov dx, word [eax + 3]
mov word [esi], dx
mov dl, byte [eax + 5]
mov byte [esi + 2], dl
jmp 0x4dd238
mov eax, dword [ebx + 0x44]
mov dx, word [eax]
mov word [esi], dx
mov dl, byte [eax + 2]
mov byte [esi + 2], dl
add esi, 3
inc dword [ebp - 0x14]
dec edi
jne 0x4dd208
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd272
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd296
jmp 0x4dd28a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd296
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd162
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 3
jne 0x4dd574
cmp dword [ebx + 0xc], 8
jg 0x4dd574
cmp dword [ebx + 8], 2
jne 0x4dd41f
cmp dword [ebx + 0xc], 8
jne 0x4dd41f
cmp word [ebx + 0x22], 1
je 0x4dd2e0
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd407
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd3f0
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd3b2
inc edi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov cx, word [edx + eax]
mov word [esi], cx
mov cl, byte [edx + eax + 2]
mov byte [esi + 2], cl
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
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 + 0x17c]
mov edx, dword [ebp - 0x14]
call fcn.0059967c
inc dword [ebp - 0x24]
add esi, 3
inc dword [ebp - 0x14]
dec edi
jne 0x4dd367
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd3e3
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd407
jmp 0x4dd3fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd407
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd2f7
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x22], 1
jne 0x4dd42c
cmp dword [ebx + 0xc], 8
jge 0x4dd439
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd556
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd53f
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 2
jne 0x4dd4d5
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd501
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
inc esi
dec edi
jne 0x4dd4c5
jmp 0x4dd501
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd501
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 0x44]
mov cx, word [edx + eax]
mov word [esi], cx
mov cl, byte [edx + eax + 2]
mov byte [esi + 2], cl
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x4dd4de
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd532
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd556
jmp 0x4dd54a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd556
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd450
cmp word [ebx + 0x22], 1
jne 0x4dd567
cmp dword [ebx + 0xc], 8
jge 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 1
ja 0x4dd728
cmp dword [ebx + 8], 1
jne 0x4dd728
cmp dword [ebx + 0xc], 8
je 0x4dd599
cmp dword [ebx + 0xc], 4
jne 0x4dd728
cmp word [ebx + 0x22], 1
jne 0x4dd5a6
cmp dword [ebx + 0xc], 4
jne 0x4dd5b4
mov eax, dword [ebp + 0x10]
add eax, 4
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd70a
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd6f3
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x4dd650
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd6b5
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
inc esi
dec edi
jne 0x4dd640
jmp 0x4dd6b5
cmp word [ebx + 0x1c], 0
jne 0x4dd68c
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd6b5
inc edi
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x4dd660
jmp 0x4dd6b5
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd6b5
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
inc dword [ebp - 0x24]
add esi, 3
dec edi
jne 0x4dd695
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd6e6
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd70a
jmp 0x4dd6fe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd70a
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd5cb
cmp word [ebx + 0x22], 1
jne 0x4dd71b
cmp dword [ebx + 0xc], 4
jne 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 1
ja 0x4dd931
cmp dword [ebx + 8], 2
jne 0x4dd931
cmp dword [ebx + 0xc], 8
jne 0x4dd931
mov al, byte [ebx + 0x180]
xor al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x4dd762
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x4dd776
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dd913
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dd8fc
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp word [ebx + 0x1c], 0
jne 0x4dd861
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd8be
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
cmp byte [ebp - 0x49], 0
je 0x4dd852
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.0059967c
inc dword [ebp - 0x24]
jmp 0x4dd856
add dword [ebp - 0x24], 2
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x4dd808
jmp 0x4dd8be
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dd8be
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [esi], al
cmp byte [ebp - 0x49], 0
je 0x4dd8b1
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x17c]
mov edx, dword [ebp - 0x10]
call fcn.0059967c
inc dword [ebp - 0x24]
jmp 0x4dd8b5
add dword [ebp - 0x24], 2
add esi, 3
inc dword [ebp - 0x10]
dec edi
jne 0x4dd871
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dd8ef
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dd913
jmp 0x4dd907
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dd913
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd78d
cmp word [ebx + 0x22], 1
jne 0x4dd924
cmp dword [ebx + 0xc], 4
jne 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 1
ja 0x4ddbcb
cmp dword [ebx + 8], 1
jne 0x4ddbcb
cmp dword [ebx + 0xc], 0x10
jne 0x4ddbcb
cmp word [ebx + 0x22], 1
je 0x4dd964
mov eax, dword [ebp + 0x10]
add eax, eax
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4ddbb3
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4ddb9c
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00405050
mov eax, dword [ebp - 0xa8]
mov edx, 0x4de8c4
call fcn.00404f3c
jne 0x4dda12
mov dword [ebp - 0x18], 4
jmp 0x4dda19
mov dword [ebp - 0x18], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x4ddab2
cmp word [ebx + 0x1c], 0
jne 0x4dda73
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4ddb5e
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov dx, 0xffff
sub dx, word [eax]
mov word [esi], dx
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x4dda3d
jmp 0x4ddb5e
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4ddb5e
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov word [esi], ax
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x4dda80
jmp 0x4ddb5e
cmp word [ebx + 0x1c], 0
jne 0x4ddb12
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4ddb5e
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
mov edx, 0xffff
sub edx, eax
shr edx, cl
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x4ddac6
jmp 0x4ddb5e
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4ddb5e
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
shr eax, cl
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x4ddb1b
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4ddb8f
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4ddbb3
jmp 0x4ddba7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4ddbb3
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4dd97b
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 1
ja 0x4dde76
cmp dword [ebx + 8], 2
jne 0x4dde76
cmp dword [ebx + 0xc], 0x10
jne 0x4dde76
cmp word [ebx + 0x22], 1
je 0x4ddbff
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4dde5e
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4dde47
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebx + 0xa4]
mov ecx, 0xf
mov edx, 1
call fcn.00405050
mov eax, dword [ebp - 0xac]
mov edx, 0x4de8c4
call fcn.00404f3c
jne 0x4ddcad
mov dword [ebp - 0x18], 4
jmp 0x4ddcb4
mov dword [ebp - 0x18], 8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 4
jne 0x4ddd55
cmp word [ebx + 0x1c], 0
jne 0x4ddd12
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dde09
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov dx, 0xffff
sub dx, word [eax]
mov word [esi], dx
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x4ddcd8
jmp 0x4dde09
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dde09
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov word [esi], ax
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 2
dec edi
jne 0x4ddd1f
jmp 0x4dde09
cmp word [ebx + 0x1c], 0
jne 0x4dddb9
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dde09
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
mov edx, 0xffff
sub edx, eax
shr edx, cl
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x4ddd69
jmp 0x4dde09
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4dde09
inc edi
mov dl, byte [ebx + 0x174]
xor dl, 1
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
call fcn.005ae670
mov edx, dword [ebp - 0x38]
mov word [edx], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
shr eax, cl
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [esi + 2], al
mov al, byte [ebp - 0x14]
mov byte [esi + 1], al
mov al, byte [ebp - 0x14]
mov byte [esi], al
add dword [ebp - 0x38], 2
add dword [ebp - 0x38], 2
add esi, 3
dec edi
jne 0x4dddc2
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4dde3a
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4dde5e
jmp 0x4dde52
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4dde5e
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4ddc16
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 1
ja 0x4de00c
cmp dword [ebx + 8], 1
jne 0x4de00c
cmp dword [ebx + 0xc], 1
jne 0x4de00c
mov eax, dword [ebp + 0x10]
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
call fcn.00402a68
mov dword [ebp - 0x28], eax
mov cl, 0xff
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
call fcn.004083d0
xor eax, eax
mov dword [ebp - 0x40], eax
cmp word [ebx + 0x1c], 0
jne 0x4dded2
cmp word [ebx + 0x22], 1
je 0x4ddee7
cmp word [ebx + 0x22], 5
jae 0x4ddee7
cmp word [ebx + 0x1c], 1
jne 0x4ddeed
cmp word [ebx + 0x22], 3
je 0x4ddee7
cmp word [ebx + 0x22], 4
jne 0x4ddeed
mov byte [ebp - 0x41], 1
jmp 0x4ddef1
mov byte [ebp - 0x41], 0
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4ddff7
inc eax
mov dword [ebp - 0x70], 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 esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4ddfe0
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov al, byte [ebp - 0x41]
sub al, 1
jb 0x4ddf94
jne 0x4ddfa2
mov edi, dword [ebp - 0x3c]
dec edi
test edi, edi
jl 0x4ddfa2
inc edi
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
not al
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x24]
inc dword [ebp - 0x2c]
dec edi
jne 0x4ddf7d
jmp 0x4ddfa2
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
call fcn.004083c8
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4ddfd3
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4ddff7
jmp 0x4ddfeb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4ddff7
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4ddf08
mov eax, dword [ebp - 0x28]
call fcn.00402a88
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 5
jne 0x4de1d8
cmp dword [ebx + 8], 4
jne 0x4de1d8
cmp dword [ebx + 0xc], 8
jne 0x4de1d8
cmp word [ebx + 0x22], 1
je 0x4de040
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4de1c0
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4de1a9
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x4de10e
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 - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de16b
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
add dword [ebp - 0x60], 4
dec edi
jne 0x4de0da
jmp 0x4de16b
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de14d
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x4de12e
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4de19c
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4de1c0
jmp 0x4de1b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4de1c0
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4de057
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 5
jne 0x4de4cd
cmp dword [ebx + 8], 5
jl 0x4de4cd
cmp dword [ebx + 0xc], 8
jne 0x4de4cd
cmp dword [ebx + 8], 4
jle 0x4de20f
cmp dword [ebx + 0x184], 0
jle 0x4de20f
cmp byte [ebx + 0x180], 0
je 0x4de213
xor eax, eax
jmp 0x4de215
mov al, 1
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0
je 0x4de228
mov eax, dword [ebx + 0x17c]
mov byte [eax + 0x68], 0
cmp word [ebx + 0x22], 1
je 0x4de23d
mov eax, dword [ebx + 8]
imul dword [ebp + 0x10]
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4de4b5
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4de49e
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x4de37e
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 - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add dword [ebp - 0x60], eax
cmp byte [ebp - 0x49], 0
je 0x4de2ed
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x17c]
call fcn.0059b35c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x34], eax
jmp 0x4de2f2
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de460
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
cmp byte [ebp - 0x49], 0
je 0x4de35a
mov dl, byte [eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], dl
inc dword [ebp - 0x34]
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
sub edx, 2
jl 0x4de372
inc edx
mov dword [ebp - 0x18], 2
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x4de351
jmp 0x4de372
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x4de372
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x4de36b
add dword [ebp - 0x60], 4
dec edi
jne 0x4de302
jmp 0x4de460
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
cmp byte [ebp - 0x49], 0
je 0x4de3b4
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x17c]
call fcn.0059b35c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x34], eax
jmp 0x4de3b9
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x60], edx
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de442
inc edi
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 1], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 2], dl
inc eax
mov dl, 0xff
sub dl, byte [eax]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 3], dl
inc eax
cmp byte [ebp - 0x49], 0
je 0x4de423
mov dl, byte [eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], dl
inc dword [ebp - 0x34]
inc eax
mov edx, dword [ebx + 8]
sub edx, 4
sub edx, 2
jl 0x4de43b
inc edx
mov dword [ebp - 0x18], 2
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x4de41a
jmp 0x4de43b
mov edx, dword [ebx + 8]
sub edx, 4
test edx, edx
jle 0x4de43b
mov dword [ebp - 0x18], 1
inc eax
inc dword [ebp - 0x18]
dec edx
jne 0x4de434
add dword [ebp - 0x60], 4
dec edi
jne 0x4de3cb
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4de491
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4de4b5
jmp 0x4de4a9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4de4b5
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4de254
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 5
jne 0x4de73c
cmp dword [ebx + 8], 4
jne 0x4de73c
cmp dword [ebx + 0xc], 0x10
jne 0x4de73c
cmp word [ebx + 0x22], 1
je 0x4de501
mov eax, dword [ebp + 0x10]
shl eax, 3
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4de724
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4de70d
cmp byte [ebx + 0x174], 0
jne 0x4de566
mov edx, dword [ebp + 0x10]
shl edx, 2
mov eax, dword [ebp - 0x20]
call fcn.004dc724
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 7
jne 0x4de622
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 - 0x60], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jns 0x4de59f
add eax, 3
sar eax, 2
shl eax, 2
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de6cf
inc edi
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 1], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 2], dl
add dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
shr eax, 8
mov dl, 0xff
sub dl, al
mov eax, dword [ebp - 0x60]
mov byte [eax + 3], dl
add dword [ebp - 0x1c], 2
add dword [ebp - 0x60], 4
dec edi
jne 0x4de5bb
jmp 0x4de6cf
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
call fcn.00402a68
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
dec edi
test edi, edi
jl 0x4de6a9
inc edi
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx]
shr edx, 8
mov cl, 0xff
sub cl, dl
mov byte [eax], cl
inc eax
add dword [ebp - 0x1c], 2
dec edi
jne 0x4de656
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 2
mov eax, dword [ebp - 0x30]
call edi
mov eax, dword [ebp - 0x30]
call fcn.00402a88
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4de700
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4de724
jmp 0x4de718
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4de724
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4de518
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
jmp 0x4de85f
cmp word [ebx + 0x1c], 8
jne 0x4de85f
cmp dword [ebx + 8], 3
jne 0x4de85f
cmp dword [ebx + 0xc], 8
jne 0x4de85f
cmp word [ebx + 0x22], 1
je 0x4de770
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
call fcn.00402a68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x4de850
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x18]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004dbf30
test al, al
je 0x4de839
push 0
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
call fcn.004dc370
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esi, eax
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x178]
push eax
mov edi, dword [0x671088]
mov edi, dword [edi]
mov ecx, esi
mov dl, 4
mov eax, dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
inc dword [eax + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x4de82c
mov eax, dword [ebp + 8]
fild dword [eax + 0xc]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00402f84
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 0x4de850
jmp 0x4de844
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov byte [eax], 1
jmp 0x4de850
inc dword [ebp - 0xc]
dec dword [ebp - 0x70]
jne 0x4de787
cmp word [ebx + 0x22], 1
je 0x4de85f
mov eax, dword [ebp - 0x20]
call fcn.00402a88
cmp word [ebx + 0x22], 5
jne 0x4de879
cmp dword [ebp - 0x48], 0
je 0x4de879
lea ecx, [ebp - 0x48]
xor edx, edx
xor eax, eax
call dword [ebx + 0x170]
cmp dword [ebp - 0x68], 0
je 0x4de887
mov eax, dword [ebp - 0x68]
call fcn.00402a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de8ac
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00404b54
ret