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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
and byte [ebp - 4], 0
push esi
mov eax, dword [ebx + 0x5bc]
mov ecx, dword [ebx + 0x114]
push edi
movzx eax, byte [ebx + eax + 0x4a1]
lea eax, [ecx + eax*8]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x1c], eax
je 0x1004bd70
cmp dword [eax + 4], ecx
je 0x1004bd70
xor eax, eax
cmp dword [ebx + 0x140], ecx
mov dword [ebp - 8], eax
jle 0x1004ba8f
jmp 0x1004a864
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax*4]
and byte [ebp - 2], 0
and byte [ebp - 0x18], 0
lea eax, [eax + ecx + 0x354]
mov dword [ebp - 0x10], eax
mov cl, byte [eax + 4]
mov dl, cl
and cl, 0xf
shr dl, 4
mov byte [ebp - 1], dl
mov dl, byte [eax + 3]
cmp dl, 0x13
mov byte [ebp + 0xb], cl
jne 0x1004a8b7
cmp byte [ebp - 1], 0xd
jne 0x1004a8b7
mov esi, dword [ebx + 0x5ac]
movzx ecx, cl
cmp esi, ecx
jl case.0x1004aed9.16
test esi, esi
jne 0x1004a8b7
cmp byte [ebp + 0xb], 0
je case.0x1004aed9.16
mov esi, dword [ebx + 0x5ac]
test esi, esi
je 0x1004a8df
cmp dl, 0x13
jne 0x1004a8e3
cmp byte [ebp - 1], 0xd
jne 0x1004a8e3
movzx ecx, byte [ebp + 0xb]
cmp esi, ecx
je 0x1004a8df
cmp esi, 1
jne 0x1004a8e3
cmp byte [ebp + 0xb], 0
jne 0x1004a8e3
mov byte [ebp - 0x18], 1
mov ecx, dword [ebp - 8]
mov esi, dword [ebx + 0x120]
imul ecx, ecx, 0x6c
add esi, ecx
mov edi, dword [esi + 8]
lea ecx, [esi + 8]
cmp edi, ecx
mov dword [ebp - 0xc], ecx
jne 0x1004a91e
mov ecx, str.Invalid_Sample
mov edi, 0x100a2ac0
mov dword [0x100a2ac8], 0x100a2b60
mov dword [0x100a2acc], ecx
mov dword [0x100a2bb0], ecx
cmp byte [ebp - 0x18], 0
je 0x1004ae50
cmp byte [esi + 0x18], 0x12
jne 0x1004a93a
cmp byte [eax + 3], 0x12
je 0x1004a93a
mov ecx, dword [esi + 0x24]
add dword [esi + 0x1c], ecx
mov cl, byte [eax + 3]
mov byte [esi + 0x18], cl
and dword [esi + 0x24], 0
and dword [edi + 0x30], 0
and byte [edi + 0x18], 0
mov cl, byte [eax]
test cl, cl
je 0x1004a965
cmp cl, 0xff
je 0x1004a965
cmp cl, 0xfe
je 0x1004a965
dec cl
mov byte [ebp - 2], 1
mov byte [esi + 0x11], cl
mov cl, byte [eax + 1]
test cl, cl
je 0x1004a99a
dec cl
cmp edi, 0x100a2ac0
mov byte [esi + 0x10], cl
jne 0x1004a97d
mov byte [ebp - 2], 1
mov cl, byte [eax + 1]
movzx edx, cl
cmp edx, dword [ebx + 0x1a38]
jne 0x1004a99a
push ecx
push 3
push ebx
call fcn.10045684
mov eax, dword [ebp - 0x10]
add esp, 0xc
test byte [ebx + 0x5a4], 4
je 0x1004a9b3
movzx ecx, byte [esi + 0x10]
cmp ecx, dword [ebx + 0x138]
jl 0x1004a9b3
and byte [ebp - 2], 0
mov cl, byte [eax + 3]
mov byte [esi + 0x18], cl
mov ecx, dword [ebp - 8]
and byte [edi + 0x18], 0
test byte [ecx + ebx + 0x14c], 0x80
je 0x1004a9ce
and byte [ebp - 2], 0
mov cl, byte [eax + 3]
cmp cl, 7
je 0x1004a9f0
cmp cl, 0xc
je 0x1004a9f0
movzx ecx, byte [eax + 2]
dec ecx
cmp ecx, 0xc1
jl 0x1004a9fc
cmp ecx, 0xca
jg 0x1004a9fc
cmp edi, 0x100a2ac0
mov byte [ebp - 3], 1
jne 0x1004aa00
and byte [ebp - 3], 0
cmp byte [ebp - 2], 0
je 0x1004ae3a
movzx ecx, byte [esi + 0x10]
mov edx, ecx
imul edx, edx, 0x2c8
add edx, dword [ebx + 0x11c]
test byte [ebx + 0x5a4], 4
mov dword [ebp - 0x14], edx
je 0x1004aa36
movzx ecx, byte [esi + 0x11]
movzx ecx, byte [edx + ecx*2 + 0x1d8]
jmp 0x1004aa37
inc ecx
test ecx, ecx
je 0x1004ae3a
dec cl
mov byte [esi + 0x12], cl
test byte [ebx + 0x5a4], 4
je 0x1004aad8
cmp byte [edx + 0x1d1], 0
je 0x1004aad8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1004aadb
movzx ecx, byte [edx + 0x1d1]
dec ecx
je 0x1004aa83
dec ecx
je 0x1004aa7b
dec ecx
jne 0x1004aad1
mov cl, byte [esi + 0x10]
cmp cl, byte [eax + 0x14]
jmp 0x1004aa89
mov cl, byte [esi + 0x12]
cmp cl, byte [eax + 0x16]
jmp 0x1004aa89
mov cl, byte [esi + 0x11]
cmp cl, byte [eax + 0x15]
jne 0x1004aad1
movzx ecx, byte [edx + 0x1d2]
sub ecx, 0
je 0x1004aacd
dec ecx
je 0x1004aa9f
dec ecx
jne 0x1004aad1
jmp 0x1004aabc
movzx ecx, byte [eax + 0x14]
imul ecx, ecx, 0x2c8
add ecx, dword [ebx + 0x11c]
mov byte [eax + 0x8c], 1
test byte [edi + 0x1a], 1
jne 0x1004aac2
mov byte [eax + 0x7d], 1
jmp 0x1004aad1
test byte [ecx + 0xc0], 4
je 0x1004aad1
jmp 0x1004aabc
or byte [eax + 0x18], 0x20
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x1004aa63
mov ecx, dword [ebp - 0xc]
cmp byte [ebp - 3], 0
jne 0x1004ac2f
mov edi, dword [ecx]
cmp edi, ecx
jne 0x1004ab21
push esi
push ebx
call fcn.10044e61
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x1004abb4
mov eax, str.Invalid_Sample
mov edi, 0x100a2ac0
mov dword [0x100a2ac8], 0x100a2b60
mov dword [0x100a2acc], eax
mov dword [0x100a2bb0], eax
jmp 0x1004abb4
test byte [ebx + 0x5a4], 4
je 0x1004abf5
movzx eax, byte [edi + 0x14]
imul eax, eax, 0x2c8
movzx ecx, byte [edi + 0x19]
add eax, dword [ebx + 0x11c]
dec ecx
je 0x1004ab8a
dec ecx
je 0x1004ab51
dec ecx
jne 0x1004abb4
mov byte [edi + 0x17], 1
jmp 0x1004ab6b
test byte [edi + 0x1a], 1
mov byte [edi + 0x17], 1
mov byte [edi + 0x8c], 1
je 0x1004ab6b
test byte [eax + 0xc0], 4
je 0x1004ab6f
mov byte [edi + 0x7d], 1
cmp dword [esi + 0x1c], 0
jne 0x1004ab79
or byte [edi + 0x18], 0x20
push esi
push ebx
call fcn.10044e61
pop ecx
test eax, eax
pop ecx
je 0x1004ab90
mov edi, eax
jmp 0x1004abae
mov byte [edi + 0x17], 1
jmp 0x1004ab6f
mov eax, str.Invalid_Sample
mov edi, 0x100a2ac0
mov dword [0x100a2ac8], 0x100a2b60
mov dword [0x100a2acc], eax
mov dword [0x100a2bb0], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x20], eax
test byte [ebx + 0x5a4], 4
je 0x1004abf5
and byte [edi + 0x17], 0
mov ecx, dword [ebx + 0x11c]
movzx eax, byte [esi + 0x10]
imul eax, eax, 0x2c8
mov al, byte [eax + ecx + 0x1d0]
mov byte [edi + 0x19], al
mov ecx, dword [ebx + 0x11c]
movzx eax, byte [esi + 0x10]
imul eax, eax, 0x2c8
mov al, byte [eax + ecx + 0xc0]
mov byte [edi + 0x1a], al
mov al, byte [esi + 0x12]
mov byte [edi + 0x16], al
mov al, byte [esi + 0x10]
mov byte [edi + 0x14], al
mov al, byte [esi + 0x11]
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x12]
cmp eax, dword [ebx + 0x13c]
jge 0x1004ac25
mov ecx, dword [ebx + 0x118]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x1004ac25
mov dword [edi + 0xc], eax
jmp 0x1004ac2c
mov dword [edi + 0xc], str.Invalid_Sample
mov edx, dword [ebp - 0x14]
test byte [ebx + 0x5a4], 4
je 0x1004ac45
movzx eax, byte [esi + 0x11]
mov al, byte [edx + eax*2 + 0x1d7]
jmp 0x1004ac48
mov al, byte [esi + 0x11]
mov byte [esi + 0x13], al
test byte [ebx + 0x5a4], 8
movzx eax, al
je 0x1004ac95
shl eax, 6
mov ecx, 0x1e00
sub ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0xc]
push ecx
push ecx
fild dword [eax + 0x12f]
fmul dword [0x10079f54]
fstp qword [esp]
call fcn.10072ca4
fmul dword [0x10079f50]
pop ecx
pop ecx
fmul dword [0x10079f4c]
call fcn.10030848
sub dword [esi + 0x14], eax
jmp 0x1004acaf
mov eax, dword [eax*4 + 0x1008c30c]
mov ecx, dword [edi + 0xc]
imul eax, eax, 0x20ab
cdq
idiv dword [ecx + 0x12f]
mov dword [esi + 0x14], eax
cmp byte [ebp - 3], 0
jne 0x1004ad79
and byte [esi + 0x42], 0
and byte [esi + 0x46], 0
mov eax, dword [esi + 0x14]
xor edx, edx
and byte [esi + 0x52], dl
and byte [esi + 0x39], dl
mov dword [esi + 0x4c], edx
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
cmp eax, 0x64
jne 0x1004ace0
or byte [edi + 0x18], 0x10
jmp 0x1004ace3
mov dword [edi + 0x24], eax
test byte [ebx + 0x5a4], 4
mov ecx, dword [ebp - 0x14]
je 0x1004acff
mov al, byte [ecx + 0x1cf]
test al, 0x80
jne 0x1004acff
movzx eax, al
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0xc]
test byte [eax + 0x120], 0x80
je 0x1004ad17
mov eax, dword [eax + 0x120]
and eax, 0x7f
mov dword [edi + 0x24], eax
test byte [ebx + 0x5a4], 4
je 0x1004ad66
movzx edx, byte [ecx + 0x1d4]
movzx eax, byte [esi + 0x11]
movzx ecx, byte [ecx + 0x1d3]
sub eax, edx
push 8
imul eax, ecx
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x14]
add dword [edi + 0x24], eax
mov eax, dword [edi + 0xc]
movzx ecx, byte [ecx + 0x1ce]
movzx eax, byte [eax + 0x12c]
imul eax, ecx
cdq
mov ecx, 0x80
idiv ecx
xor edx, edx
mov dword [edi + 0x34], eax
jmp 0x1004ad73
mov eax, dword [edi + 0xc]
movzx eax, byte [eax + 0x12c]
mov dword [edi + 0x34], eax
mov byte [edi + 0x18], 0xc
jmp 0x1004ad7b
xor edx, edx
mov ax, word [ebx + 0x5a4]
test al, 4
je 0x1004ae37
cmp byte [ebp - 3], 0
je 0x1004ad98
test al, 0x20
je 0x1004ae37
and byte [edi + 0x8c], 0
mov ecx, dword [ebx + 0x11c]
movzx eax, byte [esi + 0x10]
imul eax, eax, 0x2c8
test byte [eax + ecx + 0xc0], 8
jne 0x1004adc9
mov dword [edi + 0x44], 0x40
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], edx
mov dword [edi + 0x48], edx
movzx eax, byte [esi + 0x10]
imul eax, eax, 0x2c8
mov ecx, dword [ebx + 0x11c]
test byte [eax + ecx + 0x117], 8
jne 0x1004adef
mov dword [edi + 0x5c], edx
mov dword [edi + 0x54], edx
mov dword [edi + 0x50], edx
mov dword [edi + 0x60], edx
movzx eax, byte [esi + 0x10]
imul eax, eax, 0x2c8
mov ecx, dword [ebx + 0x11c]
test byte [eax + ecx + 0x16f], 8
jne 0x1004ae15
mov dword [edi + 0x74], edx
mov dword [edi + 0x6c], edx
mov dword [edi + 0x68], edx
mov dword [edi + 0x78], edx
and byte [edi + 0x7d], 0
and byte [edi + 0x4c], 0
and byte [edi + 0x64], 0
mov dword [edi + 0x80], 0x400
mov dword [edi + 0x88], edx
mov dword [edi + 0x84], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1004ae50
cmp byte [eax + 1], 0
je 0x1004ae50
mov ecx, dword [ecx + 0x11c]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx]
cmp ecx, edx
je 0x1004ae61
and dword [ecx + 0x2c], 0
mov ecx, dword [ecx]
jmp 0x1004ae55
or byte [edi + 0x18], 3
cmp byte [eax + 2], 0
je 0x1004ae85
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push ebx
call fcn.1004a4ee
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov edx, 0xf0
jmp 0x1004ae8a
mov edx, 0xf0
test byte [ebx + 0x5a4], 4
je 0x1004aec2
movzx ecx, byte [esi + 0x10]
imul ecx, ecx, 0x2c8
add ecx, dword [ebx + 0x11c]
cmp byte [eax], 0xff
jne 0x1004aec2
test byte [edi + 0x1a], 1
mov byte [edi + 0x8c], 1
je 0x1004aebe
test byte [ecx + 0xc0], 4
je 0x1004aec2
mov byte [edi + 0x7d], 1
cmp byte [eax], 0xfe
jne 0x1004aecb
or byte [edi + 0x18], 0x20
movzx ecx, byte [eax + 3]
dec ecx
cmp ecx, 0x19
ja case.0x1004aed9.16
jmp dword [ecx*4 + 0x1004bd75]
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, byte [eax + 4]
mov dword [ebx + 0x5b0], eax
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, byte [eax + 4]
and dword [ebx + 0x5c8], 0
cmp eax, dword [ebx + 0x12c]
lea ecx, [ebx + 0x5cc]
mov dword [ecx], eax
jl 0x1004af27
and dword [ecx], 0
mov byte [ebp - 4], 1
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, byte [eax + 4]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx + 0x5c8]
mov dword [ecx], eax
cmp eax, dword [edx]
jle 0x1004af53
and dword [ecx], 0
cmp byte [ebp - 4], 0
jne 0x1004af66
mov eax, dword [ebx + 0x5bc]
inc eax
mov dword [ebx + 0x5cc], eax
mov ecx, dword [ebx + 0x5cc]
lea eax, [ebx + 0x5cc]
cmp ecx, dword [ebx + 0x12c]
jl case.0x1004aed9.16
jmp 0x1004ba18
cmp dword [ebx + 0x5ac], 0
jne 0x1004af9f
mov al, byte [eax + 4]
test al, al
je 0x1004b332
mov byte [esi + 0x35], al
jmp 0x1004b332
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
push esi
call fcn.10049c30
jmp 0x1004b966
cmp dword [ebx + 0x5ac], 0
jne 0x1004b007
mov al, byte [eax + 4]
test al, al
je 0x1004afc7
mov byte [esi + 0x30], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
movzx eax, byte [esi + 0x30]
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jne 0x1004afe7
and eax, 0xf
shl eax, 2
add dword [edi + 0x1c], eax
movzx eax, byte [esi + 0x30]
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne case.0x1004aed9.16
and eax, 0xf
add dword [edi + 0x1c], eax
jmp case.0x1004aed9.16
mov al, byte [esi + 0x30]
cmp al, 0xe0
jae case.0x1004aed9.16
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
movzx eax, al
shl eax, 2
jmp 0x1004afff
cmp dword [ebx + 0x5ac], 0
jne 0x1004b077
mov al, byte [eax + 4]
test al, al
je 0x1004b037
mov byte [esi + 0x30], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
movzx eax, byte [esi + 0x30]
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jne 0x1004b057
and eax, 0xf
shl eax, 2
sub dword [edi + 0x1c], eax
movzx eax, byte [esi + 0x30]
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne case.0x1004aed9.16
and eax, 0xf
sub dword [edi + 0x1c], eax
jmp case.0x1004aed9.16
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x30]
cmp al, 0xe0
jae case.0x1004aed9.16
movzx eax, al
shl eax, 2
sub dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], 1
jge 0x1004b281
jmp 0x1004b5dc
cmp dword [ebx + 0x5ac], 0
jne 0x1004b0dd
mov cl, byte [eax + 4]
test cl, cl
je 0x1004b0c5
test byte [ebx + 0x5a4], 0x20
je 0x1004b0c2
mov byte [esi + 0x40], cl
jmp 0x1004b0c5
mov byte [esi + 0x30], cl
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x3c], ecx
cmp byte [eax], 0
je case.0x1004aed9.16
and byte [esi + 0x41], 0
jmp case.0x1004aed9.16
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
push esi
push ebx
call fcn.10049c74
jmp 0x1004b965
cmp dword [ebx + 0x5ac], 0
jne 0x1004b11d
mov al, byte [ebp - 1]
test al, al
je 0x1004b106
mov byte [esi + 0x43], al
mov al, byte [ebp + 0xb]
test al, al
je 0x1004b94a
mov byte [esi + 0x44], al
mov byte [esi + 0x45], 8
jmp 0x1004b94a
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
cmp byte [esi + 0x45], 0x15
push esi
push ebx
je 0x1004b960
call fcn.10049ce9
jmp 0x1004b965
cmp dword [ebx + 0x5ac], 0
jne 0x1004b15c
cmp byte [eax + 4], 0
je 0x1004b15c
mov al, byte [ebp - 1]
inc al
mov byte [esi + 0x53], al
mov al, byte [ebp + 0xb]
inc al
mov byte [esi + 0x54], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x52]
mov cl, byte [esi + 0x53]
cmp al, cl
jb 0x1004b178
mov edx, dword [esi + 0x1c]
neg edx
mov dword [esi + 0x24], edx
movzx edx, byte [esi + 0x54]
inc al
movzx ecx, cl
mov byte [esi + 0x52], al
add edx, ecx
movzx eax, al
cmp eax, edx
jl 0x1004b191
and byte [esi + 0x52], 0
or byte [edi + 0x18], 2
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b1ad
mov al, byte [eax + 4]
test al, al
je 0x1004b1ad
mov byte [esi + 0x55], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x55]
test al, al
jbe case.0x1004aed9.16
mov cl, al
and al, 0xf
mov byte [ebp + 0xb], al
mov eax, dword [ebx + 0x5ac]
shr cl, 4
push 3
mov byte [ebp - 1], cl
cdq
pop ecx
idiv ecx
dec edx
je 0x1004b236
dec edx
jne 0x1004b281
test byte [ebx + 0x5a4], 8
je 0x1004b1fd
movzx eax, byte [ebp + 0xb]
shl eax, 6
sub dword [edi + 0x2c], eax
jmp 0x1004b281
mov eax, dword [edi + 0xc]
movzx ecx, byte [esi + 0x11]
mov esi, dword [eax + 0x12f]
movzx eax, byte [ebp + 0xb]
add eax, ecx
mov eax, dword [eax*4 + 0x1008c30c]
imul eax, eax, 0x20ab
cdq
idiv esi
mov edx, eax
mov eax, dword [ecx*4 + 0x1008c30c]
imul eax, eax, 0x20ab
mov ecx, edx
cdq
idiv esi
jmp 0x1004b27c
test byte [ebx + 0x5a4], 8
je 0x1004b245
movzx eax, byte [ebp - 1]
jmp 0x1004b1f2
mov eax, dword [edi + 0xc]
movzx ecx, byte [esi + 0x11]
mov esi, dword [eax + 0x12f]
movzx eax, byte [ebp - 1]
add eax, ecx
mov eax, dword [eax*4 + 0x1008c30c]
imul eax, eax, 0x20ab
cdq
idiv esi
mov edx, eax
mov eax, dword [ecx*4 + 0x1008c30c]
imul eax, eax, 0x20ab
mov ecx, edx
cdq
idiv esi
sub ecx, eax
add dword [edi + 0x2c], ecx
or byte [edi + 0x18], 1
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b2eb
mov al, byte [eax + 4]
test al, al
je 0x1004b29d
mov byte [esi + 0x35], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x35]
mov cl, al
and cl, 0xf
cmp cl, 0xf
movzx eax, al
jne 0x1004b2bf
shr eax, 4
add dword [esi + 0x1c], eax
jmp 0x1004b2ce
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jne 0x1004b2ce
and eax, 0xf
sub dword [esi + 0x1c], eax
push 0x40
lea eax, [esi + 0x1c]
pop ecx
cmp dword [eax], ecx
jle 0x1004b2da
mov dword [eax], ecx
cmp dword [eax], 0
jge 0x1004b954
and dword [eax], 0
jmp 0x1004b954
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
cmp byte [esi + 0x45], 0x15
push esi
push ebx
jne 0x1004b304
call fcn.10049d82
jmp 0x1004b309
call fcn.10049ce9
pop ecx
pop ecx
jmp 0x1004afa9
cmp dword [ebx + 0x5ac], 0
jne 0x1004b380
mov cl, byte [eax + 4]
test cl, cl
je 0x1004b323
mov byte [esi + 0x35], cl
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x3c], ecx
cmp byte [eax], 0
je 0x1004b332
and byte [esi + 0x41], 0
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x35]
mov cl, al
and cl, 0xf
cmp cl, 0xf
movzx eax, al
jne 0x1004b354
shr eax, 4
add dword [esi + 0x1c], eax
jmp 0x1004b363
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jne 0x1004b363
and eax, 0xf
sub dword [esi + 0x1c], eax
add esi, 0x1c
push 0x40
pop eax
cmp dword [esi], eax
jle 0x1004b36f
mov dword [esi], eax
cmp dword [esi], 0
jge case.0x1004aed9.16
and dword [esi], 0
jmp case.0x1004aed9.16
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
push esi
push ebx
call fcn.10049c74
push esi
call fcn.10049c30
jmp 0x1004ba78
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, byte [eax + 4]
cmp eax, 0x40
mov dword [esi + 0x2c], eax
jle case.0x1004aed9.16
mov dword [esi + 0x2c], 0x40
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b403
mov al, byte [eax + 4]
test al, al
je 0x1004b3d8
mov byte [esi + 0x60], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x60]
mov cl, al
and cl, 0xf
cmp cl, 0xf
movzx eax, al
jne 0x1004b3fa
shr eax, 4
add dword [esi + 0x2c], eax
jmp 0x1004b42d
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jmp 0x1004b425
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x60]
test al, 0xf
jne 0x1004b41d
movzx ecx, al
shr ecx, 4
add dword [esi + 0x2c], ecx
movzx eax, al
test eax, 0xfffffff0
jne 0x1004b42d
and eax, 0xf
sub dword [esi + 0x2c], eax
add esi, 0x2c
jmp 0x1004b366
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
cmp dword [edi + 0xc], 0
je case.0x1004aed9.16
mov al, byte [eax + 4]
test al, al
je 0x1004b459
movzx eax, al
mov dword [esi + 0x28], eax
movzx eax, byte [esi + 0x6a]
mov ecx, dword [edi + 0xc]
shl eax, 8
add eax, dword [esi + 0x28]
mov edx, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x10c]
shl eax, 8
add ecx, edx
cmp eax, ecx
jb 0x1004b47e
lea eax, [ecx - 1]
mov ecx, dword [edi + 8]
mov dword [ecx + 0x2c], eax
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b4a4
cmp byte [eax + 4], 0
je 0x1004b4a4
mov al, byte [ebp - 1]
mov byte [esi + 0x37], al
mov al, byte [ebp + 0xb]
mov byte [esi + 0x38], al
mov cl, byte [esi + 0x39]
test cl, cl
je 0x1004b54e
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov al, byte [esi + 0x38]
test al, al
je case.0x1004aed9.16
movzx edx, al
movzx eax, cl
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x1004b54e
mov al, byte [esi + 0x37]
test al, al
je 0x1004b54a
movzx eax, al
dec eax
cmp eax, 0xe
ja case.0x1004b4e3.8
jmp dword [eax*4 + 0x1004bddd]
dec dword [esi + 0x1c]
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 0xfffffffe
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 0xfffffffc
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 0xfffffff8
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 0xfffffff0
jmp case.0x1004b4e3.8
and dword [esi + 0x1c], 0
jmp case.0x1004b4e3.8
sar dword [esi + 0x1c], 1
jmp case.0x1004b4e3.8
inc dword [esi + 0x1c]
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 2
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 4
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 8
jmp case.0x1004b4e3.8
add dword [esi + 0x1c], 0x10
jmp case.0x1004b4e3.8
shl dword [esi + 0x1c], 1
push 0x40
lea eax, [esi + 0x1c]
pop ecx
cmp dword [eax], ecx
jle 0x1004b53e
mov dword [eax], ecx
cmp dword [eax], 0
jge 0x1004b546
and dword [eax], 0
or byte [edi + 0x18], 2
or byte [edi + 0x18], 0xc
inc byte [esi + 0x39]
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b573
mov al, byte [ebp - 1]
test al, al
je 0x1004b569
mov byte [esi + 0x47], al
mov al, byte [ebp + 0xb]
test al, al
je 0x1004b573
mov byte [esi + 0x48], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
push esi
call fcn.10049e18
jmp 0x1004b966
mov al, byte [eax + 4]
test al, al
je 0x1004b592
mov byte [esi + 0x61], al
mov cl, byte [esi + 0x61]
mov al, cl
movzx ecx, cl
shr ecx, 4
add ecx, 0xfffffffd
and al, 0xf
cmp ecx, 0xb
ja case.0x1004aed9.16
jmp dword [ecx*4 + 0x1004be19]
mov ecx, dword [ebx + 0x5ac]
test ecx, ecx
je case.0x1004aed9.16
movzx edx, al
cmp ecx, edx
je 0x1004b5d8
cmp ecx, 1
jne case.0x1004aed9.16
test al, al
jne case.0x1004aed9.16
and dword [esi + 0x1c], 0
or byte [edi + 0x18], 0x20
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
and al, 3
mov byte [esi + 0x63], al
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
and al, 3
mov byte [esi + 0x64], al
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
and al, 3
mov byte [esi + 0x65], al
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, al
mov dword [ebx + 0x5c4], eax
jmp case.0x1004aed9.16
movzx eax, al
cmp eax, 8
ja case.0x1004aed9.16
jmp dword [eax*4 + 0x1004be49]
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je case.0x1004aed9.16
cmp byte [eax + 0x17], 0
je 0x1004b689
or byte [eax + 0x18], 0x20
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x1004b67f
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je case.0x1004aed9.16
cmp byte [eax + 0x17], 0
je 0x1004b6ec
movzx ecx, byte [eax + 0x14]
imul ecx, ecx, 0x2c8
add ecx, dword [ebx + 0x11c]
mov byte [eax + 0x8c], 1
test byte [eax + 0x1a], 1
je 0x1004b6e8
test byte [ecx + 0xc0], 4
je 0x1004b6ec
mov byte [eax + 0x7d], 1
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x1004b6bc
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je case.0x1004aed9.16
cmp byte [eax + 0x17], 0
je 0x1004b729
mov byte [eax + 0x7d], 1
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x1004b71f
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
and byte [edi + 0x19], 0
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov byte [edi + 0x19], 1
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov byte [edi + 0x19], 2
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
mov byte [edi + 0x19], 3
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
and byte [edi + 0x1a], 0xfe
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 4
je case.0x1004aed9.16
or byte [edi + 0x1a], 1
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, al
shl eax, 2
mov dword [esi + 0x20], eax
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
mov dword [edi + 0x24], eax
or byte [edi + 0x18], 0x44
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
or byte [edi + 0x18], 0x10
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
mov byte [esi + 0x6a], al
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
test al, al
jne 0x1004b887
mov eax, dword [ebx + 0x5b8]
mov dword [esi + 0x58], eax
jmp case.0x1004aed9.16
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x5c]
test edx, edx
jne 0x1004b898
movzx eax, al
mov dword [ecx], eax
jmp 0x1004b89b
dec edx
mov dword [ecx], edx
cmp dword [ecx], 0
je case.0x1004aed9.16
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x5c8], eax
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
mov ecx, dword [ebx + 0x5b0]
movzx eax, al
imul ecx, eax
mov dword [ebx + 0x5c0], ecx
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b8ec
mov cl, byte [eax + 4]
cmp cl, 0x1f
jbe 0x1004b8ec
movzx eax, cl
jmp 0x1004b91c
cmp byte [eax + 4], 0x1f
ja case.0x1004aed9.16
cmp byte [ebp - 1], 0
jne 0x1004b90b
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebx + 0x5b4]
sub ecx, eax
push ecx
jmp 0x1004b91d
cmp byte [ebp + 0xb], 1
jne case.0x1004aed9.16
mov eax, dword [ebx + 0x5b4]
inc eax
push eax
push ebx
call fcn.10044cf5
jmp 0x1004b965
cmp dword [ebx + 0x5ac], 0
jne 0x1004b11d
mov al, byte [ebp - 1]
test al, al
je 0x1004b93c
mov byte [esi + 0x43], al
mov al, byte [ebp + 0xb]
test al, al
je 0x1004b94a
mov byte [esi + 0x44], al
mov byte [esi + 0x45], 0x15
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
test byte [ebx + 0x5a4], 0x10
jmp 0x1004b121
call fcn.10049d82
pop ecx
pop ecx
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx ecx, byte [eax + 4]
lea eax, [ebx + 0x49c]
cmp ecx, 0x80
mov dword [eax], ecx
jle case.0x1004aed9.16
mov dword [eax], 0x80
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne 0x1004b9d9
mov al, byte [eax + 4]
test al, al
je 0x1004b9b2
mov byte [ebx + 0x4a0], al
mov al, byte [ebx + 0x4a0]
mov cl, al
and cl, 0xf
cmp cl, 0xf
movzx eax, al
jne 0x1004b9d0
shr eax, 4
add dword [ebx + 0x49c], eax
jmp 0x1004ba02
mov ecx, eax
and ecx, 0xfffffff0
cmp ecx, edx
jmp 0x1004b9f7
mov al, byte [ebx + 0x4a0]
test al, 0xf
jne 0x1004b9ef
movzx ecx, al
shr ecx, 4
add dword [ebx + 0x49c], ecx
movzx eax, al
test eax, 0xfffffff0
jne 0x1004ba02
and eax, 0xf
sub dword [ebx + 0x49c], eax
lea eax, [ebx + 0x49c]
mov ecx, 0x80
cmp dword [eax], ecx
jle 0x1004ba13
mov dword [eax], ecx
cmp dword [eax], 0
jge case.0x1004aed9.16
and dword [eax], 0
jmp case.0x1004aed9.16
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
movzx eax, byte [eax + 4]
shr eax, 2
jmp 0x1004b81a
cmp dword [ebx + 0x5ac], 0
jne 0x1004ba4f
mov al, byte [ebp - 1]
test al, al
je 0x1004ba45
mov byte [esi + 0x50], al
mov al, byte [ebp + 0xb]
test al, al
je 0x1004ba4f
mov byte [esi + 0x51], al
cmp byte [edi + 0x17], 0
jne case.0x1004aed9.16
push esi
call fcn.10049eb9
jmp 0x1004b966
cmp dword [ebx + 0x5ac], 0
jne case.0x1004aed9.16
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 4]
push eax
push 2
push ebx
call fcn.10045684
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x140]
jl 0x1004a861
xor ecx, ecx
cmp dword [ebx + 0x140], ecx
mov dword [ebp - 8], ecx
jle 0x1004bd70
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 8]
test byte [ebx + eax + 0x14c], 0x80
jne 0x1004bd5a
mov eax, dword [ebx + 0x120]
add eax, dword [ebp - 0x18]
mov esi, dword [eax + 8]
mov dword [ebp - 0x10], eax
add eax, 8
cmp esi, eax
je 0x1004bd5a
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], 0
mov dword [ebp + 8], eax
jne 0x1004badc
and byte [esi + 0x18], 0xf7
test byte [ebx + 0x5a4], 4
je 0x1004bb92
movzx edi, byte [esi + 0x14]
imul edi, edi, 0x2c8
add edi, dword [ebx + 0x11c]
test byte [esi + 0x1a], 1
je 0x1004bb24
cmp byte [esi + 0x4c], 0
jne 0x1004bb10
push edi
push esi
call fcn.10049f65
pop ecx
pop ecx
jmp 0x1004bb24
cmp byte [esi + 0x4c], 0
mov byte [esi + 0x7d], 1
je 0x1004bb24
cmp dword [esi + 0x44], 0
jne 0x1004bb24
or byte [esi + 0x18], 0x20
test byte [edi + 0x117], 1
je 0x1004bb3c
cmp byte [esi + 0x64], 0
jne 0x1004bb3c
push edi
push esi
call fcn.1004a0b9
pop ecx
pop ecx
test byte [edi + 0x16f], 1
je 0x1004bb5e
cmp byte [esi + 0x7c], 0
jne 0x1004bb5e
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x11]
push eax
push ebx
push edi
push esi
call fcn.1004a20f
add esp, 0x10
cmp byte [esi + 0x7d], 0
je 0x1004bb8b
movzx ecx, word [edi + 0x1cc]
sub dword [esi + 0x80], ecx
lea eax, [esi + 0x80]
jns 0x1004bb7c
and dword [eax], 0
cmp dword [eax], 0
je 0x1004bb87
or byte [esi + 0x18], 2
jmp 0x1004bb8b
or byte [esi + 0x18], 0x20
push esi
call fcn.1004a416
pop ecx
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x2c]
jne 0x1004bb9e
and byte [esi + 0x18], 0xfe
cmp byte [esi + 0x17], 0
je 0x1004bbab
mov eax, dword [ebp - 0x10]
xor edi, edi
jmp 0x1004bbb7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov edi, dword [eax + 0x24]
mov dword [esi + 0x20], ecx
mov eax, dword [eax + 0x24]
add eax, dword [esi + 0x20]
cmp eax, dword [ebx + 0x5dc]
jge 0x1004bbd6
call fcn.1004240c
cmp eax, dword [ebx + 0x5d8]
jle 0x1004bbd6
mov byte [esi + 0x18], 0x20
test byte [esi + 0x18], 8
je 0x1004bbf0
push dword [esi + 0xc]
mov eax, dword [esi + 8]
push dword [eax + 8]
call fcn.10041b1e
mov dword [esi + 0x10], eax
mov dword [ebp + 8], eax
test byte [esi + 0x18], 2
je 0x1004bc60
test byte [ebx + 0x5a4], 4
je 0x1004bc2e
add edi, dword [esi + 0x20]
mov eax, dword [ebp - 0x10]
fild dword [esi + 0x44]
mov dword [ebp - 0x1c], edi
fimul dword [ebp - 0x1c]
fimul dword [esi + 0x80]
fimul dword [esi + 0x34]
fimul dword [eax + 0x2c]
fimul dword [ebx + 0x49c]
fimul dword [ebx + 0x494]
fmul dword [0x10079f48]
jmp 0x1004bc52
add edi, dword [esi + 0x20]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
fild dword [ebp - 0x1c]
fimul dword [esi + 0x34]
fimul dword [eax + 0x2c]
fimul dword [ebx + 0x49c]
fimul dword [ebx + 0x494]
fmul dword [0x10079f44]
call fcn.10030848
push eax
push dword [ebp + 8]
call fcn.10041f33
test byte [esi + 0x18], 4
je 0x1004bca7
test byte [ebx + 0x5a4], 4
je 0x1004bc77
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x30]
jmp 0x1004bc7a
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x24]
shl eax, 2
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fsub dword [0x10079ed8]
fmul dword [ebx + 0x498]
call fcn.10030848
add eax, 0x80
push eax
push dword [ebp + 8]
call fcn.1004208a
pop ecx
pop ecx
test byte [esi + 0x18], 1
je 0x1004bd0d
mov ax, word [ebx + 0x5a4]
mov ecx, dword [esi + 0x1c]
test al, 4
je 0x1004bcbe
sub ecx, dword [esi + 0x74]
add ecx, dword [esi + 0x2c]
test al, 8
mov dword [ebp - 0x14], ecx
je 0x1004bcfc
fild dword [ebp - 0x14]
push ecx
push ecx
fsubr dword [0x10079f40]
fmul qword [0x10079f38]
fstp qword [esp]
fld qword [0x100793c8]
push ecx
push ecx
fstp qword [esp]
call fcn.10030929
fmul qword [0x10079f30]
add esp, 0x10
call fcn.10030848
jmp 0x1004bd04
mov eax, 0xda7600
cdq
idiv ecx
push eax
push dword [ebp + 8]
call fcn.10041ddd
test byte [esi + 0x18], 0x10
je 0x1004bd1d
push 1
push dword [ebp + 8]
call fcn.10042121
test byte [esi + 0x18], 0x40
je 0x1004bd2d
push 0
push dword [ebp + 8]
call fcn.10042121
test byte [esi + 0x18], 0x20
je 0x1004bd42
push dword [ebp + 8]
call fcn.10041b4c
mov eax, dword [esi + 8]
and dword [eax + 0x2c], 0
and byte [esi + 0x18], 0
push esi
call fcn.10044f2d
mov esi, dword [eax]
mov eax, dword [ebp - 0x10]
pop ecx
add eax, 8
jmp 0x1004bac4
inc dword [ebp - 8]
add dword [ebp - 0x18], 0x6c
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x140]
jl 0x1004baa1
pop edi
pop esi
pop ebx
leave
ret