Function at 0x4a5a2f
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x1022905c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x44], edx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x74], edx
lea eax, [edx + 0x50]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa4], eax
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xa0], edi
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x5c], eax
movzx eax, byte [edi + 0x34]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
add eax, 8
mov dword [ebp - 0x98], ebx
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [ebp - 0xa8], eax
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x60], eax
call fcn.004a8d21
mov ecx, dword [ebp - 0x74]
not eax
and eax, dword [ebp - 0xb8]
not edx
and edx, dword [ebp - 0xb4]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 0xc]
call fcn.00532d40
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [ebp - 0xb0], eax
mov dword [edi + 0x18], eax
cmp byte [edi + 0x34], bl
jbe 0x4a5b2f
mov ecx, dword [ebp - 0xa8]
test byte [ecx + 0x24], 8
je 0x4a5b2f
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x44]
inc eax
push ebx
push eax
push ebx
push 0x46
mov dword [esi + 0x2c], eax
pop edx
mov dword [edi], eax
call fcn.00471e77
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, eax
test eax, eax
jle 0x4a5b52
mov edx, dword [ebp - 0x74]
imul eax, eax, 0x58
add edx, 0x2f0
add eax, edx
cmp dword [eax], ebx
jne 0x4a5b52
dec ecx
sub eax, 0x58
test ecx, ecx
jg 0x4a5b46
imul eax, ecx, 0x58
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + ecx + 0x2fc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xa8]
test byte [eax + 0x28], 0x10
je 0x4a5ba5
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x44]
push ebx
push esi
push 0xd
pop edx
call fcn.00471e77
mov ecx, dword [ebp - 0x44]
add esp, 0xc
push ebx
push dword [ebp - 0x3c]
push esi
push 0xe
pop edx
call fcn.00471e77
add esp, 0xc
mov dword [edi + 0x3c], eax
push 0xb
pop eax
mov byte [edi + 0x35], al
jmp 0x4a6e89
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x24]
bt edx, 0xa
jae 0x4a5db4
movzx eax, word [eax + 0x28]
mov ecx, esi
mov dword [ebp - 0x48], eax
lea edx, [eax + 2]
call fcn.004865d9
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x48], ebx
jbe 0x4a5c23
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x4a5c1b
lea eax, [ecx + 2]
xor ecx, ecx
inc ecx
add eax, ebx
test byte [edx + 0xc], cl
je 0x4a5c08
push eax
push dword [ebp - 0x70]
mov ecx, esi
push ebx
push edi
call fcn.004a51ec
mov eax, dword [edi + 0x10]
add esp, 0x10
mov dword [ebp - 0x3c], eax
jmp 0x4a5c18
mov edx, dword [edx]
push ecx
push eax
mov ecx, esi
mov edx, dword [edx + 0x10]
call fcn.004a5851
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
inc ebx
cmp ebx, dword [ebp - 0x48]
jl 0x4a5bd6
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x44]
push ebx
push ecx
push dword [eax + 0x18]
mov ecx, esi
push 0x46
pop edx
call fcn.00471e77
mov eax, dword [ebp - 0x40]
add esp, 0xc
inc eax
mov ecx, esi
push ebx
push eax
push dword [ebp - 0x48]
push 0x46
pop edx
call fcn.00471e77
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
or eax, 0xffffffff
cmp byte [ecx + 0x1c], 0
push 0xfffffffffffffff9
pop edx
cmovne eax, edx
push eax
push dword [ecx + 0x20]
mov ecx, esi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x60]
push 9
pop edx
call fcn.00471fa1
mov edx, dword [ebp - 0x5c]
add esp, 0x14
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
mov byte [edx + 0x1c], bl
mov dword [edi + 0x38], eax
cmp byte [ecx + 0x31], 0
push 0x3c
pop eax
lea ecx, [eax + 0x6e]
cmovne eax, ecx
mov ecx, dword [edi + 0x40]
mov byte [edi + 0x35], al
mov eax, dword [esi + 0x6c]
mov esi, dword [ebp - 0x48]
sub esi, 1
mov dword [edi + 0x3c], eax
js 0x4a6e89
imul eax, ecx, 0x14
mov ecx, dword [ebp - 0x40]
add ecx, 2
add ecx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x30]
mov edx, dword [eax + esi*4]
mov dword [ebp - 0x58], edx
cmp esi, 0x10
jae 0x4a5cf1
mov eax, dword [ebp - 0x5c]
mov cx, si
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x4a5cee
mov ecx, edi
call fcn.004a4fa6
jmp 0x4a5d9c
mov ecx, dword [ebp - 0x40]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x4a5d9f
mov eax, dword [ebp - 0x68]
cmp byte [eax + 0x51], 0
jne 0x4a5d32
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi + 0x44]
sub eax, 0x14
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov edx, dword [edx + eax + 4]
call fcn.004725d9
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.00471e77
add esp, 0xc
mov ecx, dword [ebp - 0x90]
push ebx
push ebx
push 0x35
pop edx
call fcn.00481a05
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x4a5d9c
mov eax, dword [ebp - 0x58]
mov edx, 0xab
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x68]
call fcn.0048197b
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x4a5d8f
mov edx, dword [ebp - 0x40]
push ebx
mov dword [ecx + 0x1c], edx
push dword [edi + 0x18]
push eax
push dword [ebp - 0x90]
call fcn.00485783
mov eax, dword [ebp - 0x50]
add esp, 0x10
mov ecx, dword [ebp - 0x68]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.00481ce8
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x5c]
dec ecx
sub esi, 1
mov dword [ebp - 0x40], ecx
jns 0x4a5cc0
jmp 0x4a6e89
test dl, 5
setne cl
bt edx, 8
setb al
test al, cl
je 0x4a5e39
mov eax, dword [ebp - 0x5c]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x58], edx
push ebx
push edi
mov dword [ebp - 0x3c], eax
call fcn.004a51ec
mov edx, dword [ebp - 0x3c]
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp eax, edx
je 0x4a5dfd
mov ecx, esi
call fcn.004865c0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
push eax
push dword [edi + 0x10]
push dword [ebp - 0x60]
push 0x1e
pop edx
call fcn.00471e77
mov edx, dword [ebp - 0x58]
add esp, 0xc
mov byte [edi + 0x35], 0xaa
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
jne 0x4a6e89
push 4
pop ecx
or word [edx + 0xa], cx
jmp 0x4a6e89
mov ecx, 0x102
mov eax, edx
and eax, ecx
cmp eax, ecx
jne 0x4a6046
mov dword [ebp - 0x48], 0xaa
mov ecx, ebx
mov dword [ebp - 0x84], ebx
mov eax, ebx
mov dword [ebp - 0x58], ecx
test dl, 0x20
je 0x4a5e78
mov eax, dword [ebp - 0x5c]
push 4
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
pop eax
mov dword [ebp - 0x50], eax
mov eax, ebx
mov dword [ebp - 0x58], ecx
jmp 0x4a5e7b
mov dword [ebp - 0x50], ebx
test dl, 0x10
je 0x4a5e8c
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + 0x30]
mov eax, dword [edx + eax]
mov edx, dword [ebp - 0x70]
test edx, edx
cmove ecx, eax
cmove eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x4a5f46
mov edx, dword [eax]
mov dword [ebp - 0x40], 0x18161719
mov dword [ebp - 0x50], edx
mov ecx, dword [edx + 0x10]
call fcn.0048143a
cmp eax, 1
jle 0x4a5ef5
mov ecx, esi
call fcn.004865a1
mov edx, dword [edx + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x54], eax
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x58], eax
call fcn.004a5851
pop ecx
pop ecx
mov ecx, dword [ebp - 0x50]
movzx eax, byte [ecx]
xor ecx, ecx
inc eax
inc ecx
and eax, 2
or eax, ecx
mov cl, byte [ebp + eax - 0x40]
jmp 0x4a5f23
lea eax, [ebp - 0x54]
mov edx, ecx
push eax
mov ecx, esi
call fcn.004850fb
mov edx, dword [ebp - 0x8c]
pop ecx
mov ecx, edi
mov dword [ebp - 0x58], eax
call fcn.004a4fa6
mov ecx, dword [ebp - 0x50]
movzx eax, byte [ecx]
mov cl, byte [ebp + eax - 0x76]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x58]
movzx edx, cl
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x60]
call fcn.00471e77
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov ecx, esi
call fcn.004865c0
jmp 0x4a5f64
mov ecx, dword [ebp - 0x44]
xor eax, eax
inc eax
push ebx
push dword [ebp - 0x54]
xor edx, eax
push dword [ebp - 0x60]
lea edx, [edx*4 + 0x20]
call fcn.00471e77
add esp, 0xc
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4a5fde
mov eax, dword [eax]
xor edx, edx
inc dword [esi + 0x2c]
inc edx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x84], ecx
push ecx
mov ecx, esi
mov dword [ebp - 0x50], eax
call fcn.004a5851
mov edx, dword [ebp - 0x50]
pop ecx
pop ecx
mov ecx, dword [edx + 0x10]
call fcn.0048143a
cmp eax, 1
jg 0x4a5fbb
mov al, byte [edx]
cmp al, 0x38
je 0x4a5fa7
cmp al, 0x36
jne 0x4a5fbb
mov eax, dword [ebp - 0x70]
xor edx, edx
inc edx
xor eax, edx
lea edx, [eax*2 + 0x37]
mov dword [ebp - 0x48], edx
jmp 0x4a5fc8
mov eax, dword [ebp - 0x70]
lea eax, [eax*2 + 0x36]
mov dword [ebp - 0x48], eax
call fcn.0048143a
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x4a5fde
mov edx, dword [ebp - 0x6c]
mov ecx, edi
call fcn.004a4fa6
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x70], ebx
mov ecx, dword [eax + 0x6c]
sete al
add al, 4
mov dword [edi + 0x3c], ecx
cmp dword [ebp - 0x48], 0xaa
mov byte [edi + 0x35], al
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x38], eax
je 0x4a6e89
inc dword [esi + 0x2c]
mov edx, 0x80
mov esi, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x44]
push ebx
push esi
push eax
call fcn.00471e77
mov edx, dword [ebp - 0x48]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push esi
push dword [ebp - 0x3c]
push dword [ebp - 0x84]
call fcn.00471e77
mov ecx, dword [ebp - 0x44]
add esp, 0xc
push 0x53
pop edx
call fcn.00472341
jmp 0x4a6e89
test edx, 0x200
je 0x4a6898
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x50], ebx
movzx eax, word [ecx + 0x18]
mov dword [ebp - 0x54], eax
movzx eax, word [ecx + 0x1a]
mov dword [ebp - 0x6c], eax
movzx eax, word [ecx + 0x1c]
mov ecx, ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x49], bl
mov byte [ebp - 0x99], bl
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x54]
movzx eax, ax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x48], eax
test dl, 0x20
je 0x4a60d4
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
inc dword [ebp - 0x48]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
movzx eax, word [ecx + 0x1a]
mov ecx, eax
mov dword [ebp - 0x40], eax
test dl, 0x10
je 0x4a61ae
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x94], eax
movzx eax, word [esi + 0x1c]
mov esi, 0x100
cmp ecx, eax
cmova eax, ecx
mov ecx, edx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x3c], eax
test word [edx + 0xa], si
mov esi, dword [ebp - 0x90]
je 0x4a616b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x44]
inc eax
push ebx
push eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x2c], eax
xor eax, eax
inc eax
push eax
push 0x46
pop edx
call fcn.00471e77
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x64]
mov eax, dword [eax + 0x6c]
shl dword [edi + 0x2c], 1
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x1c]
xor ecx, ecx
cmp byte [edx + eax], 1
mov eax, dword [ebp - 0x5c]
sete cl
xor ecx, dword [ebp - 0x70]
or dword [edi + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
mov edx, ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x8c], ebx
jne 0x4a61ae
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
movsx ecx, word [eax + ecx*2]
mov dword [ebp - 0x48], ecx
test ecx, ecx
js 0x4a61a0
mov eax, dword [edx + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], bl
je 0x4a61de
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
cmp ecx, 0xfffffffe
je 0x4a61e1
xor ecx, ecx
inc ecx
and edx, 0x80030
cmp edx, 0x80000
jne 0x4a61ef
inc dword [esi + 0x2c]
mov edx, ecx
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x24], eax
dec dword [esi + 0x38]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x38]
mov byte [ebp - 0x49], cl
mov dword [edi + 0x28], eax
jmp 0x4a61f2
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x58]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x49], cl
jmp 0x4a61b1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x54]
movzx eax, word [eax + 0x32]
mov dword [ebp - 0x3c], eax
cmp cx, ax
jae 0x4a622c
mov eax, dword [ebp - 0x98]
xor ecx, ecx
mov esi, dword [ebp - 0x64]
mov eax, dword [eax + 0x1c]
cmp byte [esi + eax], cl
mov esi, dword [ebp - 0x90]
sete cl
cmp dword [ebp - 0x70], ecx
je 0x4a6236
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x70], ebx
je 0x4a6278
cmp ax, cx
jne 0x4a6278
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x94], ecx
mov cl, byte [ebp - 0x49]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 0x99], cl
movzx ecx, di
mov edi, dword [ebp - 0xa0]
movzx eax, al
mov byte [ebp - 0x49], bl
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
push edx
push dword [ebp - 0x70]
mov edx, edi
call fcn.004a555f
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x80], edx
test ecx, ecx
je 0x4a62b5
cmp word [ebp - 0x84], bx
je 0x4a62b5
mov edx, dword [ebp - 0x64]
lea edx, [edx + ecx]
mov ecx, dword [ebp - 0x68]
call fcn.0045a2db
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x88], ebx
je 0x4a62c5
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x40], ecx
jmp 0x4a62cb
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4a62e0
test byte [eax + 0xc], 0x28
jne 0x4a62e0
mov dword [ebp - 0x48], ebx
jmp 0x4a62e6
xor ecx, ecx
inc ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x4a62fb
test byte [ecx + 0xc], 0x28
jne 0x4a62fb
mov dword [ebp - 0x3c], ebx
jmp 0x4a6301
xor ecx, ecx
inc ecx
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x4a6346
cmp word [ebp - 0x54], bx
ja 0x4a6346
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x7c], ecx
cmp byte [ebp - 0x49], bl
je 0x4a6402
mov dword [ebp - 0x48], ebx
push ebx
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x44]
push eax
push ebx
push 0x49
pop edx
call fcn.00471e77
xor eax, eax
add esp, 0xc
inc eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
jmp 0x4a6411
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x54], 1
test eax, eax
je 0x4a6314
mov eax, dword [eax]
mov edx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x80]
mov esi, dword [ebp - 0x90]
mov eax, dword [eax + 0x10]
movzx edx, dx
push edx
push ecx
mov edx, eax
mov dword [ebp - 0x54], eax
mov ecx, esi
call fcn.004a5851
push dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x44]
mov edx, edi
call fcn.004a5771
mov ecx, dword [ebp - 0x54]
add esp, 0xc
call fcn.00482bcc
test eax, eax
je 0x4a63b1
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x40]
push eax
push 0x32
pop edx
call fcn.00471e77
add esp, 0xc
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4a63cd
mov eax, dword [ebp - 0x64]
add eax, ecx
mov ecx, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x6c]
movzx edx, ax
call fcn.004a5052
pop ecx
mov ecx, dword [ebp - 0x6c]
movzx eax, cx
add dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x54]
call fcn.0048143a
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x4a63f7
mov edx, dword [ebp - 0x8c]
mov ecx, edi
call fcn.004a4fa6
xor ecx, ecx
inc ecx
jmp 0x4a63fa
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x49], bl
mov dword [ebp - 0x54], ecx
jmp 0x4a640e
cmp dword [ebp - 0x88], ebx
jne 0x4a6320
mov eax, dword [ebp - 0x7c]
movzx ecx, byte [ebp - 0x49]
push dword [ebp - 0x58]
mov edx, dword [ebp - 0x80]
sub eax, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, esi
push eax
call fcn.004a500a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
movzx eax, word [ecx + 0x2a]
test ax, ax
je 0x4a643f
cmp dword [ebp - 0x7c], eax
je 0x4a64fa
test dword [ecx + 0x24], 0x40000
je 0x4a645b
mov ecx, dword [ebp - 0x44]
push ebx
push ebx
push dword [ebp - 0x78]
push 0x77
pop edx
call fcn.00471e77
add esp, 0xc
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4a6479
mov ecx, dword [ebp - 0x44]
push ebx
push eax
xor eax, eax
inc eax
push eax
push 0x46
pop edx
call fcn.00471e77
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x54]
push dword [ebp - 0x80]
push dword [ebp - 0x40]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x70]
push dword [ebp - 0x78]
movzx edx, byte [ecx + eax*2 + 0x10151828]
mov ecx, dword [ebp - 0x44]
call fcn.004720d0
mov eax, dword [ebp - 0x88]
add esp, 0x10
test eax, eax
je 0x4a6500
mov ecx, dword [ebp - 0x44]
push ebx
mov eax, dword [ecx + 0x6c]
add eax, 2
push eax
push ebx
push 0xb
pop eax
mov edx, eax
call fcn.00471e77
mov eax, dword [ebp - 0x7c]
add esp, 0xc
sub eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x80]
xor eax, eax
push dword [ebp - 0x40]
inc eax
push dword [ebp - 0x78]
cmp eax, dword [ebp - 0x7c]
push 4
pop ecx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x70]
movzx edx, byte [eax + ecx + 0x1015182a]
mov ecx, dword [ebp - 0x44]
call fcn.004720d0
add esp, 0x10
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x4a65d7
mov eax, dword [ecx]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x80]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x84]
movzx eax, ax
push eax
push edx
mov dword [ebp - 0x48], ecx
mov edx, ecx
mov ecx, esi
call fcn.004a5851
push dword [ebp - 0x94]
mov edi, dword [ebp - 0xa0]
mov edx, edi
mov ecx, dword [ebp - 0x44]
call fcn.004a5771
mov ecx, dword [ebp - 0x48]
add esp, 0xc
call fcn.00482bcc
test eax, eax
je 0x4a656e
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x40]
push eax
push 0x32
pop edx
call fcn.00471e77
add esp, 0xc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4a65a8
mov ecx, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x84]
movzx edx, ax
call fcn.004a5052
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x80]
pop ecx
mov ecx, dword [ebp - 0x84]
push eax
movzx eax, cx
mov ecx, dword [ebp - 0x64]
push eax
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004a500a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84]
movzx eax, cx
add dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x48]
call fcn.0048143a
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x4a65d2
mov edx, dword [ebp - 0x94]
mov ecx, edi
call fcn.004a4fa6
jmp 0x4a6600
mov dword [ebp - 0x3c], ecx
jmp 0x4a6600
cmp byte [ebp - 0x99], bl
je 0x4a6600
test eax, eax
jne 0x4a65fd
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x44]
push ebx
push eax
push ebx
push 0x49
pop edx
call fcn.00471e77
add esp, 0xc
mov dword [ebp - 0x3c], ebx
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4a6611
mov ecx, dword [ebp - 0x68]
mov edx, eax
call fcn.00459f2b
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4a6622
mov ecx, dword [ebp - 0x68]
mov edx, eax
call fcn.00459f2b
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4a6679
mov edx, dword [ebp - 0x88]
test edx, edx
je 0x4a6656
mov eax, dword [ecx + 0x6c]
push ebx
add eax, 3
push eax
push edx
push 0x14
pop edx
call fcn.00471e77
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x70]
push eax
push dword [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x78]
movzx edx, byte [eax + edx*2 + 0x10155a20]
call fcn.004720d0
mov ecx, dword [ebp - 0x44]
add esp, 0x10
mov edx, dword [ebp - 0x88]
test edx, edx
je 0x4a66bf
mov eax, dword [ecx + 0x6c]
push ebx
add eax, 2
push eax
push edx
push 0x12
pop edx
call fcn.00471e77
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
mov eax, dword [ebp - 0x64]
add eax, ecx
push eax
push dword [ebp - 0x80]
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x40]
push dword [ebp - 0x78]
movzx edx, byte [ecx + eax*2 + 0x10155a20]
mov ecx, dword [ebp - 0x44]
call fcn.004720d0
add esp, 0x10
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x24]
test eax, 0x40000
je 0x4a66e8
mov ecx, dword [ebp - 0x44]
xor eax, eax
push ebx
inc eax
push eax
push dword [ebp - 0x78]
push 0x77
pop edx
call fcn.00471e77
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x4a6703
mov ecx, dword [ebp - 0x74]
test byte [ecx + 0x2c], 0x20
jne 0x4a6703
xor eax, eax
inc eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x60]
jmp 0x4a6816
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x58], ebx
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], 0x20
jne 0x4a677e
mov ecx, dword [ebp - 0x74]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x4a674b
test eax, 0x1000
je 0x4a6732
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x4a674b
mov esi, dword [ebp - 0x78]
push esi
push dword [ebp - 0x60]
call fcn.004a57a5
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
jmp 0x4a6819
inc dword [esi + 0x2c]
mov edx, 0x87
mov esi, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x44]
push ebx
push esi
push dword [ebp - 0x78]
call fcn.00471e77
mov ecx, dword [ebp - 0x44]
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x60]
push 0x1f
pop edx
call fcn.00471e77
add esp, 0xc
jmp 0x4a6810
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x78]
je 0x4a6813
call fcn.0048a7f2
mov ecx, esi
mov dword [ebp - 0x3c], eax
movzx edx, word [eax + 0x32]
call fcn.004865d9
mov ecx, dword [ebp - 0x3c]
xor esi, esi
mov dword [ebp - 0x50], eax
movzx eax, word [ecx + 0x32]
cmp si, ax
mov edx, eax
mov esi, dword [ebp - 0x44]
jae 0x4a67f3
mov edi, ebx
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x98]
mov dx, word [eax + edi*2]
call fcn.0048a80a
movsx ecx, ax
mov eax, dword [ebp - 0x50]
add eax, edi
push eax
push ecx
push dword [ebp - 0x78]
mov ecx, esi
push 0x5a
pop edx
call fcn.00471e77
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
inc edi
movzx edx, word [ecx + 0x32]
cmp edi, edx
jl 0x4a67b5
mov edi, dword [ebp - 0xa0]
movzx eax, dx
mov ecx, esi
push eax
push dword [ebp - 0x50]
push dword [ebp - 0xb0]
push dword [ebp - 0x60]
push 0x1c
pop edx
call fcn.004720d0
add esp, 0x10
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
cmp dword [edi], ebx
jne 0x4a6834
test byte [ecx + 0x2c], 0x20
jne 0x4a6834
push ecx
mov ecx, dword [ebp - 0x98]
mov edx, eax
push esi
call fcn.004a5918
pop ecx
pop ecx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4a6850
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0x60]
call fcn.004a59c8
pop ecx
mov ecx, dword [ebp - 0x5c]
test dword [ecx + 0x24], 0x1000
je 0x4a6862
mov byte [edi + 0x35], 0xaa
jmp 0x4a686d
cmp dword [ebp - 0x70], ebx
sete al
add al, 4
mov byte [edi + 0x35], al
xor edx, edx
mov dword [edi + 0x38], esi
mov al, byte [ecx + 0x26]
inc edx
and al, dl
mov byte [edi + 0x36], al
test byte [ecx + 0x24], 0xf
jne 0x4a6884
mov byte [edi + 0x37], dl
cmp dword [ebp - 0x58], ebx
je 0x4a6e89
mov dword [ebp - 0x98], ebx
jmp 0x4a6e89
test edx, 0x2000
je 0x4a6e44
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x70], eax
inc eax
inc dword [esi + 0x2c]
dec dword [esi + 0x38]
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x94], ebx
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x84], ecx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x38], edx
xor edx, edx
mov byte [edi + 0x35], 0x42
inc edx
mov al, byte [eax + 0x2e]
cmp al, dl
jbe 0x4a69eb
movzx eax, al
sub eax, dword [ebp + 0xc]
dec eax
imul ecx, eax, 0x48
push ebx
mov dword [ebp - 0x3c], eax
add ecx, 0x50
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.0045a156
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x88], ecx
test ecx, ecx
jne 0x4a6943
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
jmp 0x4a7149
mov edx, dword [ebp - 0x3c]
lea edi, [ecx + 8]
mov esi, dword [ebp - 0xa8]
push 0x12
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x74]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [ebp - 0x6c], ecx
cmp edx, eax
jl 0x4a69ae
mov ebx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xa0]
add ebx, 0x50
add eax, 0x8c
mov dword [ebp - 0x3c], eax
movzx eax, byte [eax]
mov edi, ebx
imul esi, eax, 0x48
add ebx, 0x48
mov eax, dword [ebp - 0x3c]
push 0x12
add eax, 0x58
mov dword [ebp - 0x3c], eax
add esi, ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x6c]
sub edx, 1
jne 0x4a6989
xor ebx, ebx
mov ecx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x74]
test byte [edx + 0x2c], 0x10
jne 0x4a6a3f
test byte [ecx + 0x24], 0x20
jne 0x4a69f9
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x44]
push ebx
push eax
push ebx
push 0x49
pop edx
mov dword [ebp - 0x54], eax
call fcn.00471e77
add esp, 0xc
jmp 0x4a6a36
mov eax, dword [ebp - 0x74]
mov eax, dword [eax + 4]
mov dword [ebp - 0x88], eax
jmp 0x4a69c0
call fcn.0048a7f2
mov esi, eax
mov eax, dword [ebp - 0x90]
push ebx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x54], edx
lea ecx, [edx + 1]
mov dword [eax + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
push 0x70
pop edx
call fcn.00471e77
add esp, 0xc
mov edx, esi
mov esi, dword [ebp - 0x90]
mov ecx, esi
call fcn.004725be
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x78]
push ebx
push 0x46
pop edx
call fcn.00471e77
mov dword [ebp - 0xac], eax
xor ecx, ecx
mov eax, dword [ebp - 0xa4]
inc ecx
add esp, 0xc
cmp dword [eax + 0xc], ecx
jle 0x4a6af7
mov edx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x3c], edx
mov ecx, ebx
mov edi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
cmp eax, dword [ebp - 0x5c]
je 0x4a6ab6
test byte [eax + 0xa], 6
jne 0x4a6ab6
mov esi, 0x1fff
test word [eax + 0xc], si
mov esi, dword [ebp - 0x90]
je 0x4a6ab6
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
push ebx
call fcn.00482156
pop ecx
push eax
mov edx, edi
mov ecx, esi
call fcn.00481aae
mov edx, dword [ebp - 0x3c]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xa4]
inc edx
add ecx, 0x30
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x6c], ecx
cmp edx, dword [eax + 0xc]
jl 0x4a6a76
mov dword [ebp - 0x94], edi
test edi, edi
mov edi, dword [ebp - 0xa0]
je 0x4a6af7
mov eax, dword [ebp - 0x94]
mov edx, 0x1002c
push eax
push ebx
mov ecx, esi
call fcn.00481a05
pop ecx
pop ecx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [ebp - 0xbc], eax
xor eax, eax
push 0x101ea408
inc eax
push eax
push esi
call fcn.00472014
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov eax, ebx
mov dword [ebp - 0x8c], eax
cmp dword [ecx + 0xc], ebx
jle 0x4a6dbb
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x60]
imul eax, eax, 0x30
add eax, dword [ecx + 0x14]
cmp dword [eax + 0x14], edx
je 0x4a6b5e
mov edi, 0x400
test word [eax + 0xc], di
mov edi, dword [ebp - 0x44]
je 0x4a6d9f
mov ecx, dword [ebp - 0x94]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x80], ebx
test ecx, ecx
je 0x4a6b76
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x8c]
inc eax
push eax
xor eax, eax
push 0x101ea3fc
inc eax
push eax
push esi
call fcn.00472014
push dword [ebp - 0x70]
mov edx, dword [ebp - 0x88]
mov ecx, esi
push dword [ebp - 0xbc]
push ebx
push ebx
push dword [ebp - 0x3c]
call fcn.004ace0e
add esp, 0x24
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x4a6d99
mov edx, dword [ebp - 0x88]
lea ecx, [eax + 0x2f0]
push ebx
push ecx
mov ecx, esi
call fcn.004a4cf0
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
test byte [eax + 0x2c], 0x10
jne 0x4a6d08
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x8c]
push 0xffffffffffffffff
pop edx
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [ebp - 0x84]
cmove ecx, edx
mov dword [ebp - 0x3c], ecx
test byte [eax + 0x24], 0x20
jne 0x4a6c33
push dword [ebp - 0x48]
mov ecx, edi
push edx
push dword [ebp - 0x60]
mov edx, eax
call fcn.0048403a
add esp, 0xc
mov ecx, edi
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push ebx
push dword [ebp - 0x54]
push 0x2a
pop edx
call fcn.004720d0
add esp, 0x10
mov dword [ebp - 0x80], eax
jmp 0x4a6d08
mov ecx, eax
call fcn.0048a7f2
mov ecx, esi
mov dword [ebp - 0xc4], eax
movzx edx, word [eax + 0x32]
mov dword [ebp - 0x6c], edx
call fcn.004865d9
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc0], ebx
test edx, edx
je 0x4a6c95
mov esi, edx
mov edx, dword [ebp - 0x84]
lea ecx, [ebx + eax]
mov eax, dword [ebp - 0xc4]
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
movsx eax, word [eax + ebx*2]
push eax
push dword [ebp - 0x60]
call fcn.0048403a
mov eax, dword [ebp - 0x40]
add esp, 0xc
inc ebx
cmp ebx, esi
jl 0x4a6c5d
mov esi, dword [ebp - 0x90]
xor ebx, ebx
mov edx, dword [ebp - 0x6c]
cmp dword [ebp - 0x3c], 0
je 0x4a6cb7
push edx
push eax
push ebx
push dword [ebp - 0x54]
mov ecx, edi
push 0x1d
pop edx
call fcn.004720d0
add esp, 0x10
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x3c], 0
jl 0x4a6cf8
push dword [ebp - 0x48]
mov ecx, edi
push dword [ebp - 0x6c]
push dword [ebp - 0x40]
push 0x5c
pop edx
call fcn.00471e77
add esp, 0xc
mov edx, 0x84
mov ecx, edi
push dword [ebp - 0x6c]
push dword [ebp - 0x40]
push dword [ebp - 0x48]
push dword [ebp - 0x54]
call fcn.004720d0
add esp, 0x10
cmp dword [ebp - 0x3c], 0
je 0x4a6cf8
push 0x10
pop edx
mov ecx, edi
call fcn.00472341
push dword [ebp - 0x6c]
mov edx, dword [ebp - 0x40]
mov ecx, esi
call fcn.0048660f
add esp, 4
push ebx
push dword [ebp - 0x64]
mov ecx, edi
push dword [ebp - 0x78]
push 0xc
pop edx
call fcn.00471e77
mov eax, dword [ebp - 0x80]
add esp, 0xc
test eax, eax
je 0x4a6d32
mov edx, eax
mov ecx, edi
call fcn.004725d9
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x7c]
push 1
pop ecx
cmp byte [edx + 0x32], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x338]
mov dword [ebp - 0x7c], eax
test dword [ecx + 0x24], 0x200
je 0x4a6d88
cmp dword [ebp - 0x8c], 0
je 0x4a6d68
mov eax, dword [ebp - 0x58]
cmp dword [ecx + 0x20], eax
jne 0x4a6d88
mov eax, dword [ebp - 0x84]
test byte [eax + 0x24], 0x20
je 0x4a6d80
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x4a6d88
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x58], eax
jmp 0x4a6d8b
mov dword [ebp - 0x58], ebx
mov ecx, edx
call fcn.004ad80c
mov ecx, esi
call fcn.00472065
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, dword [ecx + 0xc]
jl 0x4a6b41
mov edi, dword [ebp - 0xa0]
mov ecx, esi
call fcn.00472065
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x40], eax
test eax, eax
je 0x4a6dd2
mov eax, dword [ebp - 0x70]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4a6de9
mov ecx, dword [ebp - 0x68]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.00481ce8
mov esi, dword [ebp - 0x44]
mov ecx, esi
mov edx, dword [ebp - 0xac]
call fcn.004725d9
mov ecx, dword [esi + 0x6c]
mov dword [eax + 4], ecx
mov ecx, esi
mov edx, dword [edi + 0xc]
call fcn.00471ed0
mov edx, dword [ebp - 0x64]
mov ecx, esi
call fcn.0047216a
mov eax, dword [ebp - 0x74]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x4a6e32
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4a6e32
mov ecx, dword [ebp - 0x68]
mov edx, eax
call fcn.00459f2b
cmp dword [ebp - 0x7c], 0
jne 0x4a6e89
mov edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.004a4fa6
jmp 0x4a6e89
mov eax, dword [ebp - 0xa8]
test byte [eax + 0x28], 0x20
je 0x4a6e56
mov byte [edi + 0x35], 0xaa
jmp 0x4a6e89
mov ecx, dword [ebp - 0x70]
push ebx
push dword [ebp - 0x54]
mov al, byte [ecx + 0x101532bc]
movzx edx, byte [ecx + 0x10155b78]
mov ecx, dword [ebp - 0x44]
mov byte [edi + 0x35], al
mov eax, dword [ebp - 0x60]
push eax
mov dword [edi + 0x38], eax
call fcn.00471e77
add esp, 0xc
inc eax
mov dword [edi + 0x3c], eax
xor eax, eax
inc eax
mov byte [edi + 0x37], al
xor eax, eax
cmp dword [ebp - 0x98], eax
sete al
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax + 0xc]
mov ecx, ebx
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x68], edx
test edx, edx
jle 0x4a6fd6
movzx eax, word [esi + 0xa]
mov dword [ebp - 0x3c], ebx
test al, 6
jne 0x4a6fb8
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
je 0x4a6ee1
mov eax, dword [ebp - 0x74]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x4a6fb5
mov eax, dword [ebp - 0xa8]
mov ecx, dword [esi]
mov dword [ebp - 0xac], ecx
test byte [eax + 0x24], 8
je 0x4a6f01
xor eax, eax
inc eax
test byte [ecx + 4], al
je 0x4a6fb5
mov eax, dword [ebp - 0x50]
cmp eax, 1
jne 0x4a6f2a
push dword [ebp - 0x98]
mov edx, dword [edi + 4]
call fcn.004861e0
mov edx, dword [ebp - 0x68]
pop ecx
test eax, eax
jne 0x4a6f2f
push 2
pop ecx
mov dword [ebp - 0x40], ecx
jmp 0x4a6fb8
cmp eax, 3
jge 0x4a6f45
movzx eax, word [esi + 0xa]
test eax, 0x1000
je 0x4a6f49
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x4a6fb8
push 3
jmp 0x4a6f21
movzx eax, word [esi + 0xa]
test eax, 0x200
je 0x4a6f78
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x4a6f78
mov ecx, dword [ebp - 0x44]
mov eax, edx
push ebx
shr eax, 1
push ebx
push eax
xor eax, eax
inc eax
and edx, eax
lea edx, [edx*2 + 0x12]
call fcn.00471e77
add esp, 0xc
mov dword [ebp - 0x3c], eax
push 0x10
push dword [ebp - 0xb0]
push dword [ebp - 0xac]
push dword [ebp - 0x90]
call fcn.00485783
mov eax, dword [ebp - 0x3c]
add esp, 0x10
test eax, eax
je 0x4a6fab
mov ecx, dword [ebp - 0x44]
mov edx, eax
call fcn.004725d9
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x68]
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [ebp - 0x40]
dec edx
add esi, 0x30
mov dword [ebp - 0x68], edx
test edx, edx
jg 0x4a6eb4
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x50], ecx
test ecx, ecx
jg 0x4a6e9e
test edx, edx
jle 0x4a70d1
add esi, 0xc
mov dword [ebp - 0x3c], esi
test byte [esi - 2], 6
jne 0x4a70bf
movzx eax, word [esi]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp - 0xa0]
setb al
test al, cl
je 0x4a70bf
mov ecx, dword [ebp - 0x60]
cmp dword [esi + 8], ecx
jne 0x4a70bf
cmp dword [edi], ebx
jne 0x4a70bf
mov eax, dword [esi - 0xc]
mov edx, ecx
mov ecx, dword [ebp - 0xa4]
push ebx
push 0x83
push dword [ebp - 0xb4]
mov dword [ebp - 0xac], eax
push dword [ebp - 0xb8]
push dword [esi + 0x10]
call fcn.004a9023
mov edx, eax
add esp, 0x14
test edx, edx
je 0x4a70bc
test byte [edx + 0xa], 4
jne 0x4a70bc
xor ecx, ecx
inc ecx
test byte [edx + 0xc], cl
je 0x4a7083
mov eax, dword [edx]
test dword [eax + 4], 0x800
je 0x4a7083
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [eax], ecx
jg 0x4a70bc
mov esi, dword [edx]
lea edi, [ebp - 0x38]
mov eax, dword [ebp - 0xac]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
push 0x10
push dword [ebp - 0xb0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x90]
call fcn.00485783
mov edi, dword [ebp - 0xa0]
add esp, 0x10
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x68]
dec edx
add esi, 0x30
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x3c], esi
test edx, edx
jg 0x4a6fef
cmp dword [edi], 0
je 0x4a7143
mov ecx, dword [ebp - 0x44]
push ebx
push dword [edi]
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x46
pop edx
call fcn.00471e77
mov edx, dword [ebp - 0xa4]
add esp, 0xc
mov esi, dword [edx + 0x14]
cmp dword [edx + 0xc], ebx
jle 0x4a7143
test byte [esi + 0xa], 6
jne 0x4a713a
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
jne 0x4a713a
push 0x10
push dword [ebp - 0xb0]
push dword [esi]
push dword [ebp - 0x90]
call fcn.00485783
mov edx, dword [ebp - 0xa4]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
inc ebx
add esi, 0x30
cmp ebx, dword [edx + 0xc]
jl 0x4a70ff
mov eax, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b1bf
leave
ret