Function at 0x1005130e
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [edx + 0x50]
mov dword [esp + 0x30], esi
mov dword [esp + 0x68], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], ebx
mov eax, dword [edi + 0x48]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0x34]
imul ecx, eax, 0x48
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [esp + 0x74], eax
mov eax, dword [eax + 0x2c]
mov edx, eax
mov dword [esp + 0x2c], eax
call fcn.10054830
mov ecx, dword [ebp + 8]
not eax
and eax, dword [ebp + 0x14]
not edx
and edx, dword [ebp + 0x18]
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.10071630
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [esp + 0x38], 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 [esp + 0x20], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
mov dword [esp + 0x7c], eax
mov dword [edi + 0x18], eax
cmp byte [edi + 0x34], bl
jbe 0x100513e1
mov eax, dword [esp + 0x74]
test byte [eax + 0x24], 8
je 0x100513e1
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
inc eax
push ebx
push eax
push ebx
push 0x46
mov dword [esi + 0x2c], eax
pop edx
mov dword [edi], eax
call fcn.1001d593
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [ebp + 8]
test eax, eax
jle 0x10051403
imul eax, eax, 0x58
add eax, 0x2f0
add eax, edx
cmp dword [eax], ebx
jne 0x10051403
dec ecx
sub eax, 0x58
test ecx, ecx
jg 0x100513f7
imul eax, ecx, 0x58
mov eax, dword [eax + edx + 0x2fc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
test byte [eax + 0x28], 0x10
je 0x10051455
push dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
mov ecx, dword [esp + 0x14]
push ebx
push esi
push 0xd
pop edx
call fcn.1001d593
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push dword [esp + 0x24]
push esi
push 0xe
pop edx
call fcn.1001d593
add esp, 0xc
mov dword [edi + 0x3c], eax
push 0xb
pop eax
mov byte [edi + 0x35], al
jmp 0x100527fa
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x24]
bt edx, 0xa
jae 0x1005168b
movzx eax, word [eax + 0x28]
mov ecx, esi
mov dword [esp + 0xc], eax
lea edx, [eax + 2]
call fcn.10031611
mov ecx, eax
mov eax, dword [edi + 0xc]
mov esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0xc], ebx
jbe 0x100514e3
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x100514da
lea eax, [ecx + 2]
xor ecx, ecx
inc ecx
add eax, esi
test byte [edx + 0xc], cl
je 0x100514c6
push eax
push dword [esp + 0x3c]
mov ecx, ebx
push esi
push edi
call fcn.10050a3c
mov eax, dword [edi + 0x10]
add esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x100514d6
mov edx, dword [edx]
push ecx
push eax
mov ecx, ebx
mov edx, dword [edx + 0x10]
call fcn.1005114e
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0xc]
jl 0x10051491
xor ebx, ebx
mov eax, dword [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x18]
push dword [eax + 0x18]
push 0x46
pop edx
call fcn.1001d593
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [esp + 0xc]
inc eax
mov ecx, dword [esp + 0x10]
push ebx
push eax
push esi
push 0x46
pop edx
call fcn.1001d593
mov ecx, dword [esp + 0x34]
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, dword [esp + 0x18]
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push 9
pop edx
call fcn.1001d6b7
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
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
sub esi, 1
mov ecx, dword [esp + 0x10]
mov byte [edi + 0x35], al
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x40]
js 0x100527fa
imul eax, eax, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 2
add eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x30]
mov edx, dword [eax + esi*4]
mov dword [esp + 0x24], edx
cmp esi, 0x10
jae 0x100515c5
mov eax, dword [esp + 0x28]
mov cx, si
mov ax, word [eax + 0x1e]
shr ax, cl
xor ecx, ecx
inc ecx
test cl, al
je 0x100515c1
mov ecx, edi
call fcn.100507b9
jmp 0x10051671
mov ecx, dword [esp + 0x10]
xor eax, eax
inc eax
test byte [edx + 0xc], al
je 0x10051671
mov eax, dword [esp + 0x68]
cmp byte [eax + 0x51], 0
jne 0x10051606
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x44]
sub eax, 0x14
mov dword [esp + 0x20], eax
mov edx, dword [edx + eax + 4]
call fcn.1001dcf7
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.1001d593
add esp, 0xc
mov ecx, dword [esp + 0x34]
push ebx
push ebx
push 0x35
pop edx
call fcn.1002cae1
mov dword [esp + 0x24], eax
pop ecx
pop ecx
test eax, eax
je 0x10051671
mov ecx, dword [esp + 0x24]
mov edx, 0xab
push ebx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
call fcn.1002ca57
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x10051663
mov edx, dword [esp + 0xc]
push ebx
mov dword [ecx + 0x1c], edx
push dword [edi + 0x18]
push eax
push dword [esp + 0x40]
call fcn.10030808
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.1002cdc8
dec dword [esp + 0xc]
sub esi, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
jns 0x10051591
jmp 0x100527fa
test dl, 5
setne cl
bt edx, 8
setb al
test al, cl
je 0x1005171b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
mov eax, dword [esp + 0x34]
inc dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
push ecx
push edx
mov dword [esp + 0x14], ecx
mov edx, esi
push ebx
push edi
mov ecx, eax
call fcn.10050a3c
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esp + 0x20], eax
cmp eax, edx
je 0x100516e0
mov ecx, dword [esp + 0x34]
call fcn.100315f8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push dword [edi + 0x10]
push dword [esp + 0x34]
push 0x1e
pop edx
call fcn.1001d593
mov byte [edi + 0x35], 0xaa
add esp, 0xc
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
jne 0x100527fa
push 4
pop ecx
or word [esi + 0xa], cx
jmp 0x100527fa
mov ecx, 0x102
mov eax, edx
and eax, ecx
cmp eax, ecx
jne 0x10051951
mov dword [esp + 0x24], 0xaa
mov ecx, ebx
mov dword [esp + 0x4c], ebx
mov esi, ebx
mov dword [esp + 0x1c], ebx
test dl, 0x20
je 0x10051757
mov eax, dword [esp + 0x28]
push 4
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
pop eax
mov dword [esp + 0xc], eax
jmp 0x1005175b
mov dword [esp + 0xc], ebx
test dl, 0x10
je 0x10051772
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x30]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10051780
mov dword [esp + 0x1c], esi
mov esi, ecx
test esi, esi
je 0x1005183b
mov edx, dword [esi]
mov dword [esp + 0x14], 0x18161719
mov dword [esp + 0x48], edx
mov ecx, dword [edx + 0x10]
call fcn.1002c54c
cmp eax, 1
jle 0x100517dd
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.100315d9
mov edx, dword [edx + 0x10]
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], eax
push ecx
push eax
mov ecx, esi
call fcn.1005114e
mov eax, dword [esp + 0x50]
xor edx, edx
inc edx
pop ecx
pop ecx
movzx eax, byte [eax]
mov ecx, dword [esp + 0xc]
inc eax
and eax, 2
or eax, edx
mov dl, byte [esp + eax + 0x14]
jmp 0x10051816
lea eax, [esp + 0xc]
mov edx, ecx
mov ecx, dword [esp + 0x34]
push eax
call fcn.10030157
pop ecx
mov edx, esi
mov dword [esp + 0x54], eax
mov ecx, edi
call fcn.100507b9
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
movzx ecx, byte [eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dl, byte [esp + ecx - 0x22]
mov ecx, dword [esp + 0x54]
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x34]
movzx edx, dl
call fcn.1001d593
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, esi
call fcn.100315f8
jmp 0x10051862
mov ecx, dword [esp + 0x10]
mov edx, eax
xor eax, eax
inc eax
push ebx
push dword [esp + 0x4c]
xor edx, eax
push dword [esp + 0x34]
lea edx, [edx*4 + 0x20]
call fcn.1001d593
mov esi, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100518e2
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 [esp + 0x50], ecx
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.1005114e
mov edx, dword [esp + 0x14]
pop ecx
pop ecx
mov ecx, dword [edx + 0x10]
call fcn.1002c54c
cmp eax, 1
jg 0x100518bc
mov al, byte [edx]
cmp al, 0x38
je 0x100518a6
cmp al, 0x36
jne 0x100518bc
mov eax, dword [esp + 0x38]
xor edx, edx
inc edx
xor eax, edx
lea edx, [eax*2 + 0x37]
mov dword [esp + 0x24], edx
jmp 0x100518cb
mov eax, dword [esp + 0x38]
lea eax, [eax*2 + 0x36]
mov dword [esp + 0x24], eax
call fcn.1002c54c
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x100518e2
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.100507b9
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x38], ebx
mov ecx, dword [eax + 0x6c]
sete al
add al, 4
mov dword [edi + 0x3c], ecx
cmp dword [esp + 0x24], 0xaa
mov byte [edi + 0x35], al
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x38], eax
je 0x100527fa
inc dword [esi + 0x2c]
mov edx, 0x80
mov esi, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
push ebx
push esi
push eax
call fcn.1001d593
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push dword [esp + 0x24]
push dword [esp + 0x54]
call fcn.1001d593
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x53
pop edx
call fcn.1001da5a
jmp 0x100527fa
test edx, 0x200
je 0x100521f5
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x20], ebx
movzx eax, word [ecx + 0x18]
mov dword [esp + 0x50], eax
movzx eax, ax
mov dword [esp + 0x44], eax
movzx eax, word [ecx + 0x1a]
mov dword [esp + 0x48], eax
movzx eax, word [ecx + 0x1c]
mov ecx, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1b], bl
mov byte [esp + 0x67], bl
mov eax, dword [eax + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], eax
test dl, 0x20
je 0x100519e4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
movzx eax, word [ecx + 0x1a]
mov ecx, eax
mov dword [esp + 0x14], eax
test dl, 0x10
je 0x10051abd
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], eax
movzx edx, word [edx + 0x1c]
cmp ecx, edx
cmova edx, ecx
mov ecx, 0x100
mov dword [esp + 0xc], edx
test word [eax + 0xa], cx
je 0x10051a6d
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
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.1001d593
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov esi, dword [esp + 0x5c]
add esp, 0xc
movzx edx, si
mov esi, dword [esp + 0x34]
mov eax, dword [eax + 0x6c]
shl dword [edi + 0x2c], 1
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
mov edx, dword [esp + 0xc]
sete cl
xor ecx, dword [esp + 0x38]
or dword [edi + 0x2c], ecx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x30], ebx
jne 0x10051abd
mov eax, dword [esp + 0x50]
movzx ecx, ax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0xc], ecx
test ecx, ecx
js 0x10051aa7
mov eax, dword [esp + 0x60]
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], bl
je 0x10051ab0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
cmp ecx, 0xfffffffe
jne 0x10051abd
xor ecx, ecx
mov dword [esp + 0x14], edx
inc ecx
mov byte [esp + 0x1b], cl
jmp 0x10051ac0
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
and eax, 0x80030
cmp eax, 0x80000
jne 0x10051af2
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x24], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esp + 0x14], ecx
mov dword [esi + 0x38], eax
mov byte [esp + 0x1b], cl
mov dword [edi + 0x28], eax
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
movzx eax, word [edx + 0x32]
mov dword [esp + 0xc], eax
cmp cx, ax
jae 0x10051b23
mov eax, dword [edx + 0x1c]
xor edx, edx
movzx ecx, cx
cmp byte [ecx + eax], dl
sete dl
cmp dword [esp + 0x38], edx
je 0x10051b32
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x10051b6c
cmp ax, cx
jne 0x10051b6c
jmp 0x10051b36
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x1b]
mov byte [esp + 0x67], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], ecx
movzx ecx, si
mov esi, dword [esp + 0x34]
movzx eax, al
mov byte [esp + 0x1b], bl
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
push dword [esp + 0x18]
push edx
mov edx, edi
call fcn.10050da7
add esp, 0xc
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x4c], ebx
je 0x10051bab
cmp word [esp + 0x54], bx
je 0x10051bab
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
movzx edx, ax
add edx, dword [esp + 0x4c]
call fcn.10005cb9
mov dword [esp + 0x20], eax
cmp dword [esp + 0x3c], ebx
je 0x10051bb6
mov eax, dword [edi + 0x28]
jmp 0x10051bb9
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x10051bd4
test byte [ecx + 0xc], 0x28
jne 0x10051bd4
xor edx, edx
mov dword [esp + 0x1c], ebx
inc edx
jmp 0x10051bdb
xor edx, edx
inc edx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10051bed
test byte [eax + 0xc], 0x28
mov dword [esp + 0xc], ebx
je 0x10051bf1
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x50]
test ecx, ecx
jne 0x10051c22
test dx, dx
jne 0x10051c22
mov eax, dword [esp + 0x44]
movzx eax, ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x1b]
test al, al
je 0x10051cf7
mov dword [esp + 0x1c], ebx
jmp 0x10051cfd
movzx eax, dx
mov dword [esp + 0x44], eax
xor eax, eax
inc eax
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x10051c0d
mov eax, dword [ecx]
mov esi, dword [esp + 0x34]
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x48]
movzx edx, ax
mov eax, dword [esp + 0x50]
movzx eax, ax
add eax, dword [esp + 0x5c]
push edx
mov dword [esp + 0x28], ecx
mov edx, ecx
push eax
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.1005114e
push dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.10051071
mov ecx, dword [esp + 0x30]
add esp, 0xc
call fcn.1002dc61
test eax, eax
je 0x10051c99
mov ecx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
push dword [esp + 0x78]
push 0x32
pop edx
call fcn.1001d593
add esp, 0xc
cmp dword [esp + 0x4c], ebx
je 0x10051cbc
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
movzx eax, ax
add eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
movzx edx, ax
call fcn.10050865
pop ecx
mov ecx, dword [esp + 0x48]
movzx eax, cx
add dword [esp + 0x44], eax
mov ecx, dword [esp + 0x24]
call fcn.1002c54c
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x10051ce7
mov edx, dword [esp + 0x30]
mov ecx, edi
call fcn.100507b9
xor ecx, ecx
inc ecx
jmp 0x10051ceb
mov dword [esp + 0x1c], ecx
mov al, bl
mov dword [esp + 0x24], ecx
mov byte [esp + 0x1b], al
jmp 0x10051d25
cmp dword [esp + 0x3c], ebx
je 0x10051d25
mov ecx, dword [esp + 0x10]
movzx eax, dx
add eax, dword [esp + 0x5c]
push ebx
push eax
push ebx
push 0x49
pop edx
call fcn.1001d593
xor eax, eax
add esp, 0xc
inc eax
inc dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x44]
push dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
movzx eax, al
sub ecx, eax
push ecx
mov ecx, esi
call fcn.1005081d
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + 0x2a]
test ax, ax
je 0x10051d57
cmp dword [esp + 0x44], eax
je 0x10051e22
test dword [ecx + 0x24], 0x40000
je 0x10051d75
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push dword [esp + 0x48]
push 0x77
pop edx
call fcn.1001d593
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10051d92
mov ecx, dword [esp + 0x10]
push ebx
push eax
xor eax, eax
inc eax
push eax
push 0x46
pop edx
call fcn.1001d593
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push dword [esp + 0x60]
push dword [esp + 0x1c]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x44]
push dword [esp + 0x4c]
movzx edx, byte [ecx + eax*2 + 0x1007f374]
mov ecx, dword [esp + 0x20]
call fcn.1001d7e6
mov ecx, dword [esp + 0x4c]
add esp, 0x10
test ecx, ecx
je 0x10051e26
mov ecx, dword [esp + 0x10]
push ebx
mov eax, dword [ecx + 0x6c]
add eax, 2
push eax
push ebx
push 0xb
pop eax
mov edx, eax
call fcn.1001d593
mov eax, dword [esp + 0x50]
add esp, 0xc
sub eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x60]
xor eax, eax
push dword [esp + 0x1c]
inc eax
push dword [esp + 0x4c]
cmp eax, dword [esp + 0x54]
push 4
pop ecx
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x48]
movzx edx, byte [eax + ecx + 0x1007f376]
mov ecx, dword [esp + 0x20]
call fcn.1001d7e6
add esp, 0x10
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
movzx edx, ax
mov dword [esp + 0x30], edx
cmp dword [esp + 0x58], ebx
je 0x10051f00
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x54]
movzx ecx, ax
mov eax, dword [esp + 0x50]
movzx eax, ax
add eax, dword [esp + 0x5c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
call fcn.1005114e
push dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.10051071
mov ecx, dword [esp + 0x28]
add esp, 0xc
call fcn.1002dc61
test eax, eax
je 0x10051e9e
mov ecx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
push dword [esp + 0x2c]
push 0x32
pop edx
call fcn.1001d593
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10051ed2
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
movzx edx, ax
call fcn.10050865
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x54]
push eax
movzx eax, cx
mov ecx, esi
push eax
call fcn.1005081d
pop ecx
pop ecx
mov ecx, dword [esp + 0x54]
movzx eax, cx
add dword [esp + 0x30], eax
mov ecx, dword [esp + 0x1c]
call fcn.1002c54c
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x10051efa
mov edx, dword [esp + 0x58]
mov ecx, edi
call fcn.100507b9
jmp 0x10051f30
mov dword [esp + 0xc], ecx
jmp 0x10051f30
cmp byte [esp + 0x67], bl
je 0x10051f30
test ecx, ecx
jne 0x10051f2b
mov ecx, dword [esp + 0x10]
push ebx
movzx eax, ax
add eax, dword [esp + 0x60]
push eax
push ebx
push 0x49
pop edx
call fcn.1001d593
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0xc], ebx
inc edx
mov dword [esp + 0x30], edx
cmp dword [esp + 0x4c], ebx
je 0x10051f43
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
call fcn.1000590f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10051f56
mov ecx, dword [esp + 0x68]
mov edx, eax
call fcn.1000590f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x6c]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10051fb5
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x10051f8c
mov eax, dword [ecx + 0x6c]
push ebx
add eax, 3
push eax
push edx
push 0x14
pop edx
call fcn.1001d593
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push eax
push dword [esp + 0x60]
mov eax, dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
movzx edx, byte [eax + edx*2 + str.__percent_rank]
call fcn.1001d7e6
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x10052004
mov eax, dword [ecx + 0x6c]
push ebx
add eax, 2
push eax
push edx
push 0x12
pop edx
call fcn.1001d593
movzx eax, byte [esp + 0x27]
add esp, 0xc
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push eax
push dword [esp + 0x60]
movzx eax, byte [esp + 0x23]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
movzx edx, byte [eax + ecx*2 + str.__percent_rank]
mov ecx, dword [esp + 0x20]
call fcn.1001d7e6
add esp, 0x10
mov eax, dword [esp + 0x28]
test dword [eax + 0x24], 0x40000
je 0x1005202d
mov ecx, dword [esp + 0x10]
xor eax, eax
push ebx
inc eax
push eax
push dword [esp + 0x48]
push 0x77
pop edx
call fcn.1001d593
mov eax, dword [esp + 0x34]
add esp, 0xc
test byte [eax + 0x24], 0x40
je 0x1005204b
mov ecx, dword [ebp + 8]
test byte [ecx + 0x2c], 0x20
jne 0x1005204b
mov edx, dword [esp + 0x2c]
xor eax, eax
lea esi, [eax + 1]
mov eax, dword [esp + 0x40]
jmp 0x100520c9
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0xc]
test byte [ecx + 0x24], 0x20
jne 0x10052113
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x1005208a
test eax, 0x1000
je 0x10052079
xor eax, eax
inc eax
cmp byte [ecx + 0x31], al
je 0x1005208a
push dword [esp + 0x40]
push dword [esp + 0x30]
call fcn.100510a5
pop ecx
pop ecx
jmp 0x100520bc
inc dword [esi + 0x2c]
mov edx, 0x87
mov esi, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
push ebx
push esi
push dword [esp + 0x48]
call fcn.1001d593
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push ebx
push dword [esp + 0x34]
push 0x1f
pop edx
call fcn.1001d593
add esp, 0xc
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov esi, ebx
mov ecx, dword [ebp + 8]
cmp dword [edi], ebx
jne 0x100520e0
test byte [ecx + 0x2c], 0x20
jne 0x100520e0
push ecx
mov ecx, dword [esp + 0x64]
push eax
call fcn.10051215
pop ecx
pop ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100520f9
push dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
call fcn.100512a7
pop ecx
mov ecx, dword [esp + 0x28]
test dword [ecx + 0x24], 0x1000
je 0x100521bd
mov byte [edi + 0x35], 0xaa
jmp 0x100521c9
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
cmp edx, eax
je 0x100520c4
call fcn.100359e4
mov ecx, esi
mov dword [esp + 0xc], eax
movzx edx, word [eax + 0x32]
call fcn.10031611
mov dword [esp + 0x20], eax
mov esi, ebx
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0x32]
xor eax, eax
mov edx, ecx
cmp ax, cx
jae 0x1005218e
mov esi, dword [esp + 0xc]
mov edi, ebx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x60]
mov dx, word [edx + edi*2]
call fcn.100359fc
movsx ecx, ax
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push ecx
push dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
push 0x5a
pop edx
call fcn.1001d593
movzx ecx, word [esi + 0x32]
add esp, 0xc
inc edi
cmp edi, ecx
jl 0x10052150
mov edi, dword [ebp + 0x10]
mov edx, ecx
mov esi, ebx
mov ecx, dword [esp + 0x10]
movzx eax, dx
push eax
push dword [esp + 0x24]
push dword [esp + 0x84]
push dword [esp + 0x38]
push 0x1c
pop edx
call fcn.1001d7e6
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edx, dword [esp + 0x2c]
jmp 0x100520c6
cmp dword [esp + 0x38], ebx
sete al
add al, 4
mov byte [edi + 0x35], al
mov eax, dword [esp + 0x40]
xor edx, edx
mov dword [edi + 0x38], eax
inc edx
mov al, byte [ecx + 0x26]
and al, dl
mov byte [edi + 0x36], al
test byte [ecx + 0x24], 0xf
jne 0x100521e4
mov byte [edi + 0x37], dl
test esi, esi
je 0x100527fa
mov dword [esp + 0x60], ebx
jmp 0x100527fa
test edx, 0x2000
je 0x100527b3
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x40], eax
inc edx
inc eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esp + 0x50], edx
mov dword [esi + 0x38], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov byte [edi + 0x35], 0x42
mov al, byte [edx + 0x2e]
cmp al, 1
jbe 0x1005232a
mov ecx, dword [esp + 0x68]
movzx eax, al
sub eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x70], eax
imul eax, eax, 0x48
push ebx
add eax, 0x50
push eax
test ecx, ecx
je 0x10052294
call fcn.10005b51
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x100522a1
call fcn.1000579c
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x100522b0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
jmp 0x10052abb
mov edx, dword [esp + 0x70]
lea edi, [ecx + 8]
mov esi, dword [esp + 0x74]
push 0x12
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [esp + 0x70], ecx
cmp edx, eax
jl 0x1005231a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
add ebx, 0x50
add eax, 0x8c
mov dword [esp + 0xc], eax
movzx eax, byte [eax]
mov edi, ebx
imul esi, eax, 0x48
add ebx, 0x48
mov eax, dword [esp + 0xc]
push 0x12
add eax, 0x58
mov dword [esp + 0x10], eax
add esi, ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
sub edx, 1
jne 0x100522f2
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
jmp 0x10052331
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
test byte [edx + 0x2c], 0x10
jne 0x100523a0
test byte [ecx + 0x24], 0x20
jne 0x1005235b
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ebx
push 0x49
pop edx
mov dword [esp + 0x30], eax
call fcn.1001d593
add esp, 0xc
jmp 0x10052396
call fcn.100359e4
mov esi, eax
mov eax, dword [esp + 0x34]
push ebx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x28], edx
lea ecx, [edx + 1]
mov dword [eax + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0x70
pop edx
call fcn.1001d593
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.1001dcdc
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
push ebx
push dword [esp + 0x54]
push ebx
push 0x46
pop edx
call fcn.1001d593
mov edx, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x78], eax
xor eax, eax
inc eax
cmp dword [edx + 0xc], eax
jle 0x1005244f
mov edi, ebx
mov dword [esp + 0xc], ebx
mov ecx, ebx
mov eax, dword [edx + 0x14]
add eax, ecx
mov edx, dword [eax]
cmp eax, dword [esp + 0x28]
je 0x1005241f
test byte [eax + 0xa], 6
jne 0x1005241f
mov esi, 0x1fff
test word [eax + 0xc], si
mov esi, dword [esp + 0x34]
je 0x1005241f
test edx, edx
je 0x10052406
mov ecx, dword [esp + 0x68]
push ebx
push ebx
call fcn.1002cf3c
pop ecx
pop ecx
jmp 0x10052408
mov eax, ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push eax
call fcn.1002cb8a
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
jmp 0x10052423
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
inc edi
add ecx, 0x30
mov dword [esp + 0xc], ecx
cmp edi, dword [edx + 0xc]
jl 0x100523d1
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1005244f
push eax
push ebx
mov edx, 0x1002c
mov ecx, esi
call fcn.1002cae1
pop ecx
pop ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x2c]
and ax, cx
pop ecx
or ax, cx
movzx eax, ax
mov dword [esp + 0x70], eax
xor eax, eax
push str.MULTI_INDEX_OR
inc eax
push eax
push esi
call fcn.1001d72a
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, ebx
mov dword [esp + 0x54], eax
cmp dword [ecx + 0xc], ebx
jle 0x10052728
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
imul eax, eax, 0x30
add eax, dword [ecx + 0x14]
cmp dword [eax + 0x14], edx
je 0x100524b6
mov edi, 0x400
test word [eax + 0xc], di
mov edi, dword [esp + 0x10]
je 0x10052713
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x5c], ebx
test ecx, ecx
je 0x100524cf
mov dword [ecx + 0xc], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x54]
inc eax
push eax
xor eax, eax
push str.INDEX__d
inc eax
push eax
push esi
call fcn.1001d72a
push dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov ecx, esi
push dword [esp + 0x84]
push ebx
push ebx
push dword [esp + 0x2c]
call fcn.100589d8
add esp, 0x24
mov dword [esp + 0x80], eax
test eax, eax
je 0x1005270b
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x2f0]
push ebx
push ecx
mov ecx, esi
call fcn.1005051b
mov eax, dword [ebp + 8]
pop ecx
pop ecx
test byte [eax + 0x2c], 0x10
jne 0x10052675
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
push 0xffffffffffffffff
pop edx
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [esp + 0x20]
cmove ecx, edx
mov dword [esp + 0xc], ecx
test byte [eax + 0x24], 0x20
jne 0x1005258e
push dword [esp + 0x1c]
mov ecx, edi
push edx
push dword [esp + 0x34]
mov edx, eax
call fcn.1002f08d
add esp, 0xc
mov ecx, edi
push dword [esp + 0xc]
push dword [esp + 0x20]
push ebx
push dword [esp + 0x30]
push 0x2a
pop edx
call fcn.1001d7e6
add esp, 0x10
mov dword [esp + 0x5c], eax
jmp 0x10052675
mov ecx, eax
call fcn.100359e4
mov ecx, esi
mov dword [esp + 0x84], eax
movzx edx, word [eax + 0x32]
mov dword [esp + 0x48], edx
call fcn.10031611
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], ebx
test edx, edx
je 0x100525f4
mov esi, edx
mov edx, dword [esp + 0x20]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x84]
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
movsx eax, word [eax + ebx*2]
push eax
push dword [esp + 0x34]
call fcn.1002f08d
mov eax, dword [esp + 0x58]
add esp, 0xc
inc ebx
cmp ebx, esi
jl 0x100525bc
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov edx, dword [esp + 0x48]
cmp dword [esp + 0xc], 0
je 0x1005261a
push edx
push eax
push ebx
push dword [esp + 0x30]
mov ecx, edi
push 0x1d
pop edx
call fcn.1001d7e6
add esp, 0x10
mov dword [esp + 0x5c], eax
cmp dword [esp + 0xc], 0
jl 0x10052663
push dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x4c]
push dword [esp + 0x54]
push 0x5c
pop edx
call fcn.1001d593
add esp, 0xc
mov edx, 0x84
mov ecx, edi
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.1001d7e6
add esp, 0x10
cmp dword [esp + 0xc], 0
je 0x10052663
push 0x10
pop edx
mov ecx, edi
call fcn.1001da5a
push dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov ecx, esi
call fcn.10031647
add esp, 4
push ebx
push dword [esp + 0x3c]
mov ecx, edi
push dword [esp + 0x58]
push 0xc
pop edx
call fcn.1001d593
mov eax, dword [esp + 0x68]
add esp, 0xc
test eax, eax
je 0x100526a2
mov edx, eax
mov ecx, edi
call fcn.1001dcf7
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x44]
push 1
pop ecx
cmp byte [edx + 0x32], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x338]
mov dword [esp + 0x44], eax
test dword [ecx + 0x24], 0x200
je 0x100526f9
cmp dword [esp + 0x54], 0
je 0x100526da
mov eax, dword [esp + 0x58]
cmp dword [ecx + 0x20], eax
jne 0x100526f9
mov eax, dword [esp + 0x20]
test byte [eax + 0x24], 0x20
je 0x100526f0
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x100526f9
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x58], eax
jmp 0x100526fd
mov dword [esp + 0x58], ebx
mov ecx, edx
call fcn.100593cc
mov ecx, esi
call fcn.1001d77b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [ecx + 0xc]
jl 0x10052498
mov edi, dword [ebp + 0x10]
mov ecx, esi
call fcn.1001d77b
mov eax, dword [esp + 0x58]
mov dword [edi + 0x40], eax
test eax, eax
je 0x10052741
mov eax, dword [esp + 0x40]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10052757
mov ecx, dword [esp + 0x68]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.1002cdc8
mov esi, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x78]
call fcn.1001dcf7
mov ecx, dword [esi + 0x6c]
mov dword [eax + 4], ecx
mov ecx, esi
mov edx, dword [edi + 0xc]
call fcn.1001d5ec
mov edx, dword [esp + 0x38]
mov ecx, esi
call fcn.1001d880
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2e], cl
jbe 0x1005279f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1005279f
mov ecx, dword [esp + 0x68]
mov edx, eax
call fcn.1000590f
cmp dword [esp + 0x44], 0
jne 0x100527fa
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.100507b9
jmp 0x100527fa
mov eax, dword [esp + 0x74]
test byte [eax + 0x28], 0x20
je 0x100527c3
mov byte [edi + 0x35], 0xaa
jmp 0x100527fa
mov ecx, dword [esp + 0x38]
push ebx
push dword [esp + 0x4c]
mov al, byte [ecx + 0x10082134]
movzx edx, byte [ecx + 0x10083a30]
mov ecx, dword [esp + 0x18]
mov byte [edi + 0x35], al
mov eax, dword [esp + 0x34]
push eax
mov dword [edi + 0x38], eax
call fcn.1001d593
add esp, 0xc
inc eax
mov dword [edi + 0x3c], eax
xor eax, eax
inc eax
mov byte [edi + 0x37], al
xor edx, edx
cmp dword [esp + 0x60], edx
sete dl
inc edx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x6c]
mov ecx, ebx
mov dword [esp + 0x14], ecx
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
jmp 0x1005293b
movzx eax, word [esi + 0xa]
mov dword [esp + 0x20], ebx
mov edx, eax
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0xc]
test al, 6
jne 0x10052933
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
je 0x10052855
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov byte [eax + 0x32], cl
jmp 0x1005292f
mov ecx, dword [esp + 0x74]
mov eax, dword [esi]
mov dword [esp + 0x80], eax
test byte [ecx + 0x24], 8
je 0x10052876
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x1005292f
jmp 0x10052879
xor ecx, ecx
inc ecx
cmp edx, ecx
jne 0x1005289c
push dword [esp + 0x60]
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.10031282
pop ecx
test eax, eax
jne 0x100528a8
push 2
pop ecx
mov dword [esp + 0x14], ecx
jmp 0x10052933
mov eax, dword [esp + 0x78]
movzx ecx, ax
cmp edx, 3
jge 0x100528c1
movzx eax, word [esi + 0xa]
mov ecx, eax
test eax, 0x1000
je 0x100528c1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x10052933
push 3
jmp 0x10052892
test ecx, 0x200
je 0x100528f3
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x100528f3
mov ecx, dword [esp + 0x10]
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.1001d593
add esp, 0xc
mov dword [esp + 0x20], eax
push 0x10
push dword [esp + 0x80]
push dword [esp + 0x88]
push dword [esp + 0x40]
call fcn.10030808
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x10052928
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.1001dcf7
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
push 4
pop eax
or word [esi + 0xa], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec eax
add esi, 0x30
mov dword [esp + 0x1c], eax
test eax, eax
jg 0x1005281d
mov edx, ecx
mov dword [esp + 0xc], edx
test ecx, ecx
jg 0x10052808
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
jmp 0x10052a37
test byte [esi + 0xa], 6
jne 0x10052a33
movzx eax, word [esi + 0xc]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [ebp + 0x10]
setb al
test al, cl
je 0x10052a33
mov ecx, dword [esp + 0x2c]
cmp dword [esi + 0x14], ecx
jne 0x10052a33
cmp dword [edi], ebx
jne 0x10052a33
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [esp + 0x6c]
push ebx
push 0x83
push dword [ebp + 0x18]
mov dword [esp + 0x84], eax
push dword [ebp + 0x14]
push dword [esi + 0x1c]
call fcn.10054b0f
mov edx, eax
add esp, 0x14
test edx, edx
je 0x10052a2f
test byte [edx + 0xa], 4
jne 0x10052a2f
xor ecx, ecx
inc ecx
test byte [edx + 0xc], cl
je 0x100529ef
mov eax, dword [edx]
test dword [eax + 4], 0x800
je 0x100529ef
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
cmp dword [eax], ecx
jg 0x10052a2f
mov esi, dword [edx]
lea edi, [esp + 0x8c]
mov eax, dword [esp + 0x78]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
push 0x10
push dword [esp + 0x80]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x40]
call fcn.10030808
mov edi, dword [ebp + 0x10]
add esp, 0x10
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
dec edx
add esi, 0x30
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], esi
test edx, edx
jg 0x10052964
cmp dword [edi], 0
je 0x10052ab5
mov ecx, dword [esp + 0x10]
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.1001d593
mov edx, dword [esp + 0x78]
add esp, 0xc
mov esi, dword [edx + 0x14]
cmp dword [edx + 0xc], ebx
jle 0x10052ab5
test byte [esi + 0xa], 6
jne 0x10052aac
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x50]
and eax, dword [edi + 0x54]
or ecx, eax
jne 0x10052aac
push 0x10
push dword [esp + 0x80]
push dword [esi]
push dword [esp + 0x40]
call fcn.10030808
mov edx, dword [esp + 0x7c]
add esp, 0x10
push 4
pop eax
or word [esi + 0xa], ax
inc ebx
add esi, 0x30
cmp ebx, dword [edx + 0xc]
jl 0x10052a74
mov eax, dword [edi + 0x50]
mov edx, dword [edi + 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret