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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x10100008]
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 0x1001ca37
lea eax, [ebx + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
movzx ebx, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea edi, [ecx + ebx]
cmp edi, 2
jae 0x1001ca4b
xor edx, edx
jmp 0x1001ca68
test edx, edx
je 0x1001ca5e
cmp edx, edi
jne 0x1001ca5d
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, edi
jmp 0x1001ca61
dec edx
mov eax, dword [ebp + 0x10]
mov edi, 2
sub edi, eax
lea eax, [edi + 1]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x7c], edi
lea ecx, [eax + edi]
cmp ecx, ebx
jne 0x1001ca94
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 0x38]
movzx ecx, byte [eax + 6]
add ebx, 8
add ebx, ecx
jmp 0x1001cab2
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.100173d0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d7bd
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 0x1001ccf2
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
movzx ecx, word [ebx + 0x16]
lea eax, [esi + edi]
cmp eax, ecx
jne 0x1001cb94
cmp byte [ebx + 1], 0
je 0x1001cb94
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.100168a0
movzx eax, ax
mov dword [esp + ebx + 0x64], eax
mov eax, dword [esp + 0x24]
mov byte [eax + 1], 0
jmp 0x1001cc87
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.100168a0
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 0x1001cc5b
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, edx
cmp eax, dword [ecx + 0x24]
mov ecx, dword [esp + 0x20]
jg 0x1001ccba
mov eax, dword [esp + 0x58]
push edx
add eax, ecx
push esi
push eax
call fcn.100c18e0
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.1001c350
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.100173d0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d7bd
mov esi, dword [esp + 0x40]
jmp 0x1001cb04
push 0x100f685c
push 0xe4e0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
lea eax, [ebx + 4]
mov edi, 0xb
push eax
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.100c1720
add esp, 0x1c
xor ebx, ebx
jmp 0x1001d510
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.10004b70
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
jne 0x1001cd2e
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x1001d510
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 0x1001cf7b
xor eax, eax
xor esi, esi
mov dword [esp + 0x50], eax
nop dword [eax + 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.100c18e0
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 0x1001ce6b
xor ebx, ebx
test eax, eax
je 0x1001cec9
movzx eax, byte [edi + 1]
mov ecx, ebx
sub eax, 1
js 0x1001ce23
lea esi, [eax + 0xb]
lea esi, [edi + esi*2]
movzx edx, word [esi]
cmp edx, ecx
jg 0x1001ce1b
je 0x1001ce65
dec ecx
sub esi, 2
sub eax, 1
jns 0x1001ce11
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.100168a0
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 0x1001ce00
jmp 0x1001cec9
mov edx, dword [edi + eax*4 + 0x20]
jmp 0x1001ce3d
cmp dword [esp + 0x3c], 0
mov ebx, dword [edi + 0x38]
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 0xe]
jbe 0x1001cec9
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.100168a0
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 0x1001ce86
mov esi, ecx
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x7c]
jge 0x1001cf58
cmp byte [esp + 0xf], 0
jne 0x1001cf58
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.100c18e0
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 0x1001cf41
mov eax, dword [edi + 0x38]
mov ecx, dword [edx + esi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1001cf4f
cmp ecx, 4
jae 0x1001cf4f
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 0x1001cd80
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 0x1001cfdb
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 0x1001cfd6
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 0x1001d078
cmp byte [esp + 0xf], dl
lea eax, [ecx - 1]
cmove eax, ecx
mov ecx, eax
inc ecx
cmp ecx, edi
jl 0x1001cfa0
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 0x1001d0be
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 0x1001d04c
cmp dword [ebp + 0x10], 0
jne 0x1001d0a5
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 0x1001d09d
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 0x1001d00f
push 0x100f685c
push 0xe56b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
add esp, 0x10
mov edi, 0xb
xor ebx, ebx
jmp 0x1001d510
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 0x1001d000
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0xc8]
cmp dword [eax + 0x48], 1
ja 0x1001d0f0
push 0x100f685c
push 0xe5a9
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
add esp, 0x10
mov edi, 0xb
xor ebx, ebx
jmp 0x1001d510
mov eax, dword [eax + 0x38]
xor esi, esi
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x1001d1f0
lea ecx, [esi + 1]
cmp esi, dword [esp + 0x48]
jge 0x1001d163
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 0x1001d152
call fcn.10012ba0
inc dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x1001d1d6
call fcn.10012890
inc dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x1001d1d6
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.1001af00
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1001d50c
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 0x1001d1e2
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x48]
push 5
call fcn.100164d0
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1001d50c
inc esi
mov ecx, 1
cmp esi, ebx
jl 0x1001d107
mov ebx, dword [esp + 0x48]
cmp esi, ebx
jge 0x1001d24a
nop dword [eax + eax]
cmp dword [esp + 0x10], 0
mov edi, dword [esp + esi*4 + 0xc8]
jne 0x1001d7e2
push dword [edi + 0x48]
mov ecx, dword [edi + 0x34]
mov edx, edi
call fcn.1001b920
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001d7e2
mov ecx, dword [edi + 0x44]
call fcn.100124c0
mov dword [esp + esi*4 + 0xc8], 0
inc esi
cmp esi, ebx
jl 0x1001d200
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x50], eax
jle 0x1001d2cf
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 0x1001d2c5
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 0x1001d284
cmp ebx, dword [esp + 0x40]
jle 0x1001d2ba
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 0x1001d260
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 0x1001d494
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.100172f0
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.1001c640
mov edi, esi
add esp, 8
cmp edi, dword [esp + 0x28]
jge 0x1001d47d
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 0x1001d38f
mov ecx, dword [ebx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1001d442
cmp byte [esp + 0xf], 0
je 0x1001d42c
lea eax, [esp + 0xa8]
dec edi
push eax
mov eax, dword [esp + 0x3c]
mov ecx, ebx
mov edx, dword [eax + edi*4]
call fcn.10016750
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 0x1001d419
jb 0x1001d3da
cmp ecx, 0x7f
ja 0x1001d3eb
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x1001d446
test edx, edx
ja 0x1001d419
jb 0x1001d3f9
cmp ecx, 0x3fff
ja 0x1001d419
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 0x1001d446
push edx
push ecx
mov ecx, eax
call fcn.100088d0
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x1001d446
sub esi, 4
cmp ecx, 4
jne 0x1001d446
mov ecx, dword [esp + 0x24]
mov edx, esi
call fcn.100168a0
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.1001c430
mov eax, dword [esp + 0x28]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1001d7e2
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 0x1001d310
mov edx, dword [esp + 0x60]
test byte [esp + 0x30], 8
jne 0x1001d4b2
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 0x1001d571
mov ecx, dword [esp + 0x24]
cmp word [ecx + 0x12], 0
jne 0x1001d571
movzx eax, byte [ecx + 6]
cmp ax, word [ebx + 0x10]
ja 0x1001d571
lea eax, [esp + 0x14]
mov edx, ecx
push eax
mov ecx, ebx
call fcn.1001c900
mov edi, dword [esp + 0x18]
add esp, 4
test edi, edi
jne 0x1001d50c
push dword [ebx + 0x48]
mov ecx, dword [ebx + 0x34]
mov edx, ebx
call fcn.1001b920
add esp, 4
mov edi, eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
call fcn.10004c90
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
jle 0x1001d53f
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x1001d53a
mov ecx, dword [ecx + 0x44]
call fcn.100124c0
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x1001d523
xor esi, esi
test ebx, ebx
jle 0x1001d55a
mov ecx, dword [esp + esi*4 + 0x64]
test ecx, ecx
je 0x1001d555
mov ecx, dword [ecx + 0x44]
call fcn.100124c0
inc esi
cmp esi, ebx
jl 0x1001d545
mov ecx, dword [esp + 0xd4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x11], 0
je 0x1001d7e2
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 0x1001d5a2
movzx edi, word [ecx + 0x16]
jmp 0x1001d5a5
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 0x1001d761
mov dword [esp + 0x40], eax
xor edx, edx
cmp ebx, esi
jne 0x1001d612
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 0x1001d60a
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 0x1001d5d0
cmp ebx, edi
jne 0x1001d629
mov eax, dword [esp + 0x5c]
mov edx, 1
dec eax
mov dword [esp + 0x5c], eax
test eax, eax
jle 0x1001d629
inc edi
mov eax, dword [esp + 0x40]
cmp ebx, dword [esp + eax + 0x94]
jne 0x1001d65f
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 0x1001d74e
test edx, edx
mov edx, dword [esp + 0x1c]
jne 0x1001d673
mov eax, dword [ecx + 0x48]
cmp eax, dword [edx + 0x48]
je 0x1001d74e
cmp word [esp + 0x4c], 0
jne 0x1001d6c0
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.100164d0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x1001d6c4
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 0x1001d74e
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x44], eax
test edx, edx
jne 0x1001d74e
lea edx, [esp + 0xa8]
push edx
mov edx, eax
call fcn.10016750
mov ax, word [esp + 0xbe]
add esp, 4
test ax, ax
je 0x1001d74e
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.100164d0
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 0x1001d5c2
cmp word [esp + 0x4c], 0
mov ebx, dword [esp + 0x18]
jne 0x1001d7eb
xor esi, esi
test ebx, ebx
jle 0x1001d7eb
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.100164d0
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x1001d773
mov edi, dword [esp + 0x14]
jmp 0x1001d510
lea eax, [edi*4 + 4]
push eax
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.100c1720
mov edi, dword [esp + 0x1c]
add esp, 0xc
xor ebx, ebx
jmp 0x1001d510
mov edi, dword [esp + 0x10]
jmp 0x1001d50c
mov edi, dword [esp + 0x10]
jmp 0x1001d510