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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x10102008]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ebx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ecx
push edi
test ebx, ebx
jne 0x1001caf7
lea eax, [ebx + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret
movzx ebx, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea edi, [ecx + ebx]
cmp edi, 2
jae 0x1001cb0b
xor edx, edx
jmp 0x1001cb28
test edx, edx
je 0x1001cb1e
cmp edx, edi
jne 0x1001cb1d
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, edi
jmp 0x1001cb21
dec edx
mov eax, dword [ebp + 0x10]
mov edi, 2
sub edi, eax
mov dword [esp + 0x1c], edx
lea eax, [edi + 1]
sub edx, ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x48], eax
lea ecx, [edx + edi]
cmp ecx, ebx
jne 0x1001cb52
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x38]
movzx ecx, byte [eax + 6]
add ebx, 8
add ebx, ecx
jmp 0x1001cb70
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x40]
movzx ebx, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl ebx, 8
or ebx, eax
movzx eax, word [edx + 0x14]
and ebx, eax
add ebx, dword [edx + 0x38]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
mov ecx, dword [esp + 0x2c]
shl edx, 8
or edx, eax
mov dword [esp + 0x54], ebx
movzx eax, byte [ebx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 3]
shl edx, 8
lea ebx, [esp + 0xc8]
or edx, eax
lea ebx, [ebx + edi*4]
push 0
push ebx
mov dword [esp + 0xcc], edx
call fcn.100174f0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d87d
mov eax, dword [ebx]
mov edx, edi
mov dword [esp + 0x4c], edx
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, esi
add ecx, eax
mov eax, edi
dec edi
mov dword [esp + 0x40], ecx
test eax, eax
je 0x1001cdb0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
movzx ecx, word [ebx + 0x16]
lea eax, [esi + edi]
cmp eax, ecx
jne 0x1001cc52
cmp byte [ebx + 1], 0
je 0x1001cc52
mov edx, dword [ebx + 0x20]
lea ebx, [edi*4]
mov ecx, dword [esp + 0x24]
mov dword [esp + ebx + 0x80], edx
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0xc4], esi
call fcn.100169c0
movzx eax, ax
mov dword [esp + ebx + 0x64], eax
mov eax, dword [esp + 0x24]
mov byte [eax + 1], 0
jmp 0x1001cd45
movzx eax, byte [ebx + 1]
sub esi, eax
mov eax, dword [ebx + 0x40]
add esi, edx
movzx edx, byte [eax + esi*2 - 1]
movzx eax, byte [eax + esi*2 - 2]
mov esi, dword [ebx + 0x38]
shl eax, 8
or edx, eax
movzx eax, word [ebx + 0x14]
mov ebx, dword [esp + 0x4c]
and edx, eax
movzx eax, byte [esi + edx]
add esi, edx
shl eax, 8
mov dword [esp + 0x20], edx
mov edx, esi
lea ebx, [ebx*4 - 4]
movzx ecx, byte [esi + 1]
or ecx, eax
mov dword [esp + ebx + 0x80], esi
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x24]
call fcn.100169c0
movzx edx, ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc0], edx
mov dword [esp + ebx + 0x64], edx
test byte [eax + 0x16], 4
je 0x1001cd19
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, edx
cmp eax, dword [ecx + 0x24]
mov ecx, dword [esp + 0x20]
jg 0x1001cd78
mov eax, dword [esp + 0x58]
push edx
add eax, ecx
push esi
push eax
call fcn.100c1ff0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xc0]
sub eax, dword [ecx + 0x38]
add eax, esi
mov dword [esp + ebx + 0x80], eax
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push edx
movzx eax, byte [esi + 1]
mov edx, dword [esp + 0x54]
sub ecx, eax
dec edx
add edx, ecx
mov ecx, esi
call fcn.1001c410
mov esi, dword [esp + 0xcc]
add esp, 8
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc8]
add ebx, eax
mov edx, esi
push 0
push ebx
call fcn.100174f0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d87d
mov esi, dword [esp + 0x40]
jmp 0x1001cbc2
push 0x100f7b6c
push 0xe4e0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
lea eax, [ebx + 4]
mov edi, 0xb
push eax
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.100c1e30
add esp, 0x1c
xor ebx, ebx
jmp 0x1001d5d0
mov ebx, dword [esp + 0x2c]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov edx, dword [ebx + 0x20]
lea eax, [edx + 0x50]
mov ecx, eax
mov dword [esp + 0x44], eax
imul ecx, dword [esp + 0x48]
lea eax, [esi + esi*2]
add ecx, edx
lea ecx, [ecx + eax*2]
call fcn.10004bd0
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
jne 0x1001cdec
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x1001d5d0
mov edx, dword [esp + 0xc8]
lea eax, [edi + esi*4]
lea ecx, [eax + esi*2]
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
movzx eax, byte [edx + 5]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x4c], eax
mov al, byte [edx + 3]
xor edx, edx
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0xc0], eax
mov dword [esp + 0x20], edx
cmp dword [esp + 0x48], edx
jle 0x1001d03b
xor eax, eax
xor esi, esi
mov dword [esp + 0x50], eax
nop dword [eax]
lea edi, [eax + ecx]
add edi, dword [ebx + 0x20]
lea eax, [edx*4]
mov ecx, dword [esp + eax + 0xc8]
mov dword [esp + 0x60], eax
mov dword [esp + eax + 0x88], edi
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [edi + 0x30], xmm0
movq xmm0, qword [ecx + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [ecx + 0x48]
mov dword [edi + 0x48], eax
lea eax, [edi + 0x4c]
mov dword [edi + 0x38], eax
push dword [ebx + 0x20]
push dword [ecx + 0x38]
push eax
call fcn.100c1ff0
mov dl, byte [edi + 1]
add esp, 0xc
movzx ecx, word [edi + 0x12]
movzx eax, dl
add eax, ecx
mov dword [esp + 0x3c], eax
test dl, dl
je 0x1001cf2b
xor ebx, ebx
test eax, eax
je 0x1001cf89
movzx eax, byte [edi + 1]
mov ecx, ebx
sub eax, 1
js 0x1001cee3
lea esi, [eax + 0xb]
lea esi, [edi + esi*2]
movzx edx, word [esi]
cmp edx, ecx
jg 0x1001cedb
je 0x1001cf25
dec ecx
sub esi, 2
sub eax, 1
jns 0x1001ced1
mov eax, dword [edi + 0x40]
movzx edx, byte [eax + ecx*2 + 1]
movzx eax, byte [eax + ecx*2]
shl eax, 8
or edx, eax
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
mov eax, dword [esp + 0x38]
mov ecx, edi
mov esi, dword [esp + 0x28]
mov dword [eax + esi*4], edx
call fcn.100169c0
mov ecx, dword [esp + 0x34]
inc ebx
mov word [ecx + esi*2], ax
inc esi
mov dword [esp + 0x28], esi
cmp ebx, dword [esp + 0x3c]
jl 0x1001cec0
jmp 0x1001cf89
mov edx, dword [edi + eax*4 + 0x20]
jmp 0x1001cefd
cmp dword [esp + 0x3c], 0
mov ebx, dword [edi + 0x38]
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0xe]
jbe 0x1001cf89
mov edx, eax
lea esi, [ebx + ecx]
mov dword [esp + 0x78], edx
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x28]
and edx, ecx
mov ecx, dword [esp + 0x38]
add edx, ebx
mov dword [ecx + eax*4], edx
mov ecx, edi
call fcn.100169c0
mov ecx, dword [esp + 0x28]
lea esi, [esi + 2]
mov edx, dword [esp + 0x34]
mov word [edx + ecx*2], ax
inc ecx
sub dword [esp + 0x3c], 1
mov edx, dword [esp + 0x78]
mov dword [esp + 0x28], ecx
jne 0x1001cf46
mov esi, ecx
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x7c]
jge 0x1001d018
cmp byte [esp + 0xf], 0
jne 0x1001d018
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x34]
movzx eax, word [esp + ecx + 0x64]
mov word [ebx + esi*2], ax
mov esi, dword [esp + 0x30]
add esi, dword [esp + 0x40]
add dword [esp + 0x30], eax
push eax
push dword [esp + ecx + 0x84]
push esi
call fcn.100c1ff0
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x38]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [edx + esi*4], eax
mov ax, word [ebx + esi*2]
sub ax, cx
mov word [ebx + esi*2], ax
cmp byte [edi + 5], 0
movzx ecx, ax
jne 0x1001d001
mov eax, dword [edi + 0x38]
mov ecx, dword [edx + esi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1001d00f
cmp ecx, 4
jae 0x1001d00f
mov eax, 4
mov word [ebx + esi*2], ax
mov edx, dword [esp + 0x20]
inc esi
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x50]
inc edx
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], eax
cmp edx, dword [esp + 0x48]
jl 0x1001ce40
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov edi, dword [esp + 0x28]
xor edx, edx
movzx esi, ax
add esi, 0xfffffff4
add esi, dword [ebx + 0x24]
xor ebx, ebx
test edi, edi
jle 0x1001d09b
nop word [eax + eax]
mov eax, dword [esp + 0x34]
add edx, 2
movzx eax, word [eax + ecx*2]
add edx, eax
cmp edx, esi
jle 0x1001d096
sub edx, eax
mov dword [esp + ebx*4 + 0x94], ecx
mov dword [esp + ebx*4 + 0x64], edx
inc ebx
xor edx, edx
cmp ebx, 4
jg 0x1001d138
cmp byte [esp + 0xf], dl
lea eax, [ecx - 1]
cmove eax, ecx
mov ecx, eax
inc ecx
cmp ecx, edi
jl 0x1001d060
mov eax, ebx
mov dword [esp + ebx*4 + 0x64], edx
mov dword [esp + ebx*4 + 0x94], edi
mov ecx, eax
inc ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], eax
test ecx, ecx
jle 0x1001d17e
nop
mov esi, dword [esp + ecx*4 + 0x64]
mov eax, dword [esp + ecx*4 + 0x60]
mov ebx, dword [esp + ecx*4 + 0x90]
lea edi, [ebx - 1]
mov dword [esp + 0x30], eax
mov edx, edi
sub edx, dword [esp + 0xc0]
inc edx
test esi, esi
je 0x1001d10c
cmp dword [ebp + 0x10], 0
jne 0x1001d165
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
movzx eax, word [eax + edi*2]
sub ecx, eax
mov eax, dword [esp + 0x34]
sub ecx, 2
movzx eax, word [eax + edx*2]
add eax, 2
add eax, esi
cmp eax, ecx
jg 0x1001d15d
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx + edx*2]
add eax, 2
add esi, eax
movzx eax, word [ecx + edi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x20]
dec ebx
mov dword [esp + ecx*4 + 0x90], ebx
jmp 0x1001d0cf
push 0x100f7b6c
push 0xe56b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
mov edi, 0xb
xor ebx, ebx
jmp 0x1001d5d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esp + ecx*4 + 0x64], esi
mov dword [esp + ecx*4 + 0x60], eax
dec ecx
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x1001d0c0
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0xc8]
cmp dword [eax + 0x48], 1
ja 0x1001d1b0
push 0x100f7b6c
push 0xe5a9
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
mov edi, 0xb
xor ebx, ebx
jmp 0x1001d5d0
mov eax, dword [eax + 0x38]
xor esi, esi
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x1001d2b0
lea ecx, [esi + 1]
cmp esi, dword [esp + 0x48]
jge 0x1001d223
mov eax, dword [esp + esi*4 + 0xc8]
mov dword [esp + 0xc0], eax
mov dword [esp + esi*4 + 0x64], eax
mov dword [esp + esi*4 + 0xc8], 0
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001d212
call fcn.10012c80
inc dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x1001d296
call fcn.10012970
inc dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x1001d296
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0xc0]
cmp dword [ebp + 0x10], 0
push 0
cmovne eax, ecx
mov ecx, dword [esp + 0x30]
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.1001afd0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1001d5cc
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x18]
mov edx, dword [esp + 0xc0]
mov dword [esp + esi*4 + 0x64], edx
cmp byte [ecx + 0x11], al
je 0x1001d2a2
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x48]
push 5
call fcn.100165f0
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1001d5cc
inc esi
mov ecx, 1
cmp esi, ebx
jl 0x1001d1c7
mov ebx, dword [esp + 0x48]
cmp esi, ebx
jge 0x1001d30a
nop dword [eax + eax]
cmp dword [esp + 0x10], 0
mov edi, dword [esp + esi*4 + 0xc8]
jne 0x1001d8a2
push dword [edi + 0x48]
mov ecx, dword [edi + 0x34]
mov edx, edi
call fcn.1001b9f0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d8a2
mov ecx, dword [edi + 0x44]
call fcn.10012590
mov dword [esp + esi*4 + 0xc8], 0
inc esi
cmp esi, ebx
jl 0x1001d2c0
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x50], eax
jle 0x1001d38f
mov ecx, dword [esp + 0x3c]
nop word [eax + eax]
lea edx, [esp + 0x64]
mov ebx, eax
lea edx, [edx + eax*4]
inc eax
mov dword [esp + 0x44], edx
mov edi, eax
mov edx, dword [edx]
mov dword [esp + 0x60], edx
mov dword [esp + 0xc0], eax
mov esi, dword [edx + 0x48]
cmp eax, ecx
jge 0x1001d385
mov eax, dword [esp + edi*4 + 0x64]
mov ecx, esi
mov edx, ebx
mov ebx, edi
mov eax, dword [eax + 0x48]
cmp eax, esi
cmovb esi, eax
cmp eax, ecx
cmovae ebx, edx
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x1001d344
cmp ebx, dword [esp + 0x40]
jle 0x1001d37a
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + ebx*4 + 0x64]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
mov dword [esp + ebx*4 + 0x64], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x50]
jl 0x1001d320
mov ebx, dword [esp + 0x18]
xor edi, edi
mov esi, dword [esp + 0x54]
mov edx, dword [esp + ebx*4 + 0x60]
mov dword [esp + 0x60], edx
mov ecx, dword [edx + 0x48]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x1001d554
nop dword [eax]
mov ebx, dword [esp + esi*4 + 0x64]
mov ecx, ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ebx
call fcn.10017410
mov eax, dword [esp + 0x34]
mov ecx, ebx
mov esi, dword [esp + esi*4 + 0x94]
mov edx, esi
sub edx, edi
lea eax, [eax + edi*2]
push eax
mov eax, dword [esp + 0x3c]
lea eax, [eax + edi*4]
push eax
call fcn.1001c700
mov edi, esi
add esp, 8
cmp edi, dword [esp + 0x28]
jge 0x1001d53d
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
movzx edx, bx
mov ebx, dword [esp + 0x44]
mov esi, dword [eax + edi*4]
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + edi*2]
mov eax, dword [esp + 0x58]
add edx, ecx
add eax, dword [esp + 0x5c]
cmp byte [ebx + 5], 0
mov dword [esp + 0x20], eax
jne 0x1001d44f
mov ecx, dword [ebx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1001d502
cmp byte [esp + 0xf], 0
je 0x1001d4ec
lea eax, [esp + 0xa8]
dec edi
push eax
mov eax, dword [esp + 0x3c]
mov ecx, ebx
mov edx, dword [eax + edi*4]
call fcn.10016870
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0xac]
mov esi, eax
mov ecx, dword [esp + 0xa8]
add eax, 4
mov dword [esp + 0x44], eax
test edx, edx
ja 0x1001d4d9
jb 0x1001d49a
cmp ecx, 0x7f
ja 0x1001d4ab
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x1001d506
test edx, edx
ja 0x1001d4d9
jb 0x1001d4b9
cmp ecx, 0x3fff
ja 0x1001d4d9
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x44]
or al, 0x80
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x1001d506
push edx
push ecx
mov ecx, eax
call fcn.10008920
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x1001d506
sub esi, 4
cmp ecx, 4
jne 0x1001d506
mov ecx, dword [esp + 0x24]
mov edx, esi
call fcn.100169c0
movzx edx, ax
mov eax, dword [esp + 0x20]
add dword [esp + 0x5c], edx
lea ecx, [esp + 0x14]
push ecx
push dword [ebx + 0x48]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push edx
push esi
mov edx, ebx
call fcn.1001c4f0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1001d8a2
inc edi
inc ebx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x54]
inc esi
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x18]
jl 0x1001d3d0
mov edx, dword [esp + 0x60]
test byte [esp + 0x30], 8
jne 0x1001d572
mov eax, dword [esp + 0x48]
mov ecx, dword [edx + 0x38]
mov eax, dword [esp + eax*4 + 0x84]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp dword [ebp + 0xc], 0
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x1c], ebx
je 0x1001d631
mov ecx, dword [esp + 0x24]
cmp word [ecx + 0x12], 0
jne 0x1001d631
movzx eax, byte [ecx + 6]
cmp ax, word [ebx + 0x10]
ja 0x1001d631
lea eax, [esp + 0x14]
mov edx, ecx
push eax
mov ecx, ebx
call fcn.1001c9c0
mov edi, dword [esp + 0x18]
add esp, 4
test edi, edi
jne 0x1001d5cc
push dword [ebx + 0x48]
mov ecx, dword [ebx + 0x34]
mov edx, ebx
call fcn.1001b9f0
add esp, 4
mov edi, eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
call fcn.10004cf0
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
jle 0x1001d5ff
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x1001d5fa
mov ecx, dword [ecx + 0x44]
call fcn.10012590
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x1001d5e3
xor esi, esi
test ebx, ebx
jle 0x1001d61a
mov ecx, dword [esp + esi*4 + 0x64]
test ecx, ecx
je 0x1001d615
mov ecx, dword [ecx + 0x44]
call fcn.10012590
inc esi
cmp esi, ebx
jl 0x1001d605
mov ecx, dword [esp + 0xd4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bf4c9
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x11], 0
je 0x1001d8a2
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
movzx eax, byte [ecx + 1]
movzx esi, word [ecx + 0x12]
add esi, eax
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1001d662
movzx edi, word [ecx + 0x16]
jmp 0x1001d665
or edi, 0xffffffff
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0xc0], eax
cmp dword [esp + 0x28], eax
jle 0x1001d821
mov dword [esp + 0x40], eax
xor edx, edx
cmp ebx, esi
jne 0x1001d6d2
cmp byte [esp + 0xf], dl
sete dl
nop
mov ecx, dword [esp + eax*4 + 0x8c]
inc eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], ecx
mov al, byte [ecx + 1]
movzx esi, al
mov dword [esp + 0x54], esi
movzx esi, word [ecx + 0x12]
add esi, edx
add esi, dword [esp + 0x54]
add esi, ebx
test al, al
je 0x1001d6ca
movzx edi, word [ecx + 0x16]
mov eax, dword [esp + 0x54]
add edi, edx
mov dword [esp + 0x5c], eax
add edi, ebx
mov eax, dword [esp + 0x58]
cmp ebx, esi
je 0x1001d690
cmp ebx, edi
jne 0x1001d6e9
mov eax, dword [esp + 0x5c]
mov edx, 1
dec eax
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x1001d6e9
inc edi
mov eax, dword [esp + 0x40]
cmp ebx, dword [esp + eax + 0x94]
jne 0x1001d71f
mov eax, dword [esp + 0xc0]
inc eax
mov dword [esp + 0xc0], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + eax + 0x64]
mov dword [esp + 0x1c], eax
je 0x1001d80e
test edx, edx
mov edx, dword [esp + 0x1c]
jne 0x1001d733
mov eax, dword [ecx + 0x48]
cmp eax, dword [edx + 0x48]
je 0x1001d80e
cmp word [esp + 0x4c], 0
jne 0x1001d780
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebx*4]
lea eax, [esp + 0x14]
push eax
push dword [edx + 0x48]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [esp + 0x34]
shl edx, 8
push 5
or edx, eax
call fcn.100165f0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x1001d784
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ax, word [eax + ebx*2]
cmp ax, word [ecx + 0xc]
jbe 0x1001d80e
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x44], eax
test edx, edx
jne 0x1001d80e
lea edx, [esp + 0xa8]
push edx
mov edx, eax
call fcn.10016870
mov ax, word [esp + 0xbe]
add esp, 4
test ax, ax
je 0x1001d80e
movzx ecx, ax
lea eax, [esp + 0x14]
add ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
movzx edx, byte [ecx + 1]
push dword [eax + 0x48]
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x24]
push 3
mov ecx, dword [eax + 0x34]
call fcn.100165f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x50]
inc ebx
mov eax, dword [esp + 0x58]
cmp ebx, dword [esp + 0x28]
jl 0x1001d682
cmp word [esp + 0x4c], 0
mov ebx, dword [esp + 0x18]
jne 0x1001d8ab
xor esi, esi
test ebx, ebx
jle 0x1001d8ab
mov eax, dword [esp + esi*4 + 0x64]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x38]
push dword [eax + 0x48]
push 5
movzx eax, byte [ecx + 8]
movzx edx, byte [ecx + 9]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
mov ecx, dword [esp + 0x38]
shl edx, 8
or edx, eax
call fcn.100165f0
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x1001d833
mov edi, dword [esp + 0x14]
jmp 0x1001d5d0
lea eax, [edi*4 + 4]
push eax
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.100c1e30
mov edi, dword [esp + 0x1c]
add esp, 0xc
xor ebx, ebx
jmp 0x1001d5d0
mov edi, dword [esp + 0x10]
jmp 0x1001d5cc
mov edi, dword [esp + 0x10]
jmp 0x1001d5d0