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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa80
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [esp + 0x3c], 0xa
jmp 0x1003f17a
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
mov edx, dword [esp + 0x3c]
lea edx, [esi + edx + 1]
cmp edx, ebx
jg 0x1003fe04
mov edi, ecx
xor edx, edx
imul edi, ebx
add ecx, 1
cmp esi, edx
mov dword [esp + 0x2c], edx
jle 0x1003f1f0
add edi, esi
mov esi, dword [esp + 0x3c]
add esi, edi
mov esi, dword [eax + esi*4]
sub esi, dword [eax + edi*4 - 4]
mov dword [esp + 0x4c], edi
mov edi, dword [ebp + 0x1c]
cmp ecx, edi
jge 0x1003f1cb
mov edx, dword [ebp + 0x18]
imul ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x3c]
add edx, ecx
mov edx, dword [eax + edx*4]
sub edx, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp + 0x14]
add ecx, 2
cmp ecx, edi
jge 0x1003f230
mov edi, dword [ebp + 0x18]
imul ecx, ebx
add edi, ecx
mov ecx, dword [esp + 0x3c]
add ecx, edi
mov ecx, dword [eax + ecx*4]
sub ecx, dword [eax + edi*4 - 4]
mov dword [esp + 0x2c], ecx
jmp 0x1003f234
add esi, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
add esi, edi
mov edi, dword [ebp + 0x1c]
cmp ecx, edi
mov esi, dword [eax + esi*4]
jge 0x1003f213
imul ecx, ebx
add ecx, dword [esp + 0x3c]
add ecx, dword [ebp + 0x18]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x14]
add ecx, 2
cmp ecx, edi
jge 0x1003f230
imul ecx, ebx
add ecx, dword [esp + 0x3c]
add ecx, dword [ebp + 0x18]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jmp 0x1003f234
mov ecx, dword [esp + 0x2c]
test esi, esi
je 0x1003fe0f
xor edi, edi
cmp dword [ebp + 0x10], 2
mov dword [esp + 0xc], edi
jne 0x1003f27b
mov eax, dword [ebp + 0x14]
add eax, 2
cmp eax, dword [ebp + 0x1c]
jge 0x1003fe0f
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x224]
lea eax, [esi + esi*2]
lea eax, [edx + eax*4]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
mov edi, dword [eax + ecx*4 + 0xe09c4]
jmp 0x1003f2ca
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x1003f2b0
mov eax, dword [ebp + 0x14]
add eax, 1
cmp eax, dword [ebp + 0x1c]
jge 0x1003fe0f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x224]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + edi*4]
lea ecx, [esi + esi*2]
lea ecx, [edx + ecx*4]
mov edi, dword [eax + ecx*4 + 0xe24c8]
jmp 0x1003f2ca
test eax, eax
jne 0x1003f2ce
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x224]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + esi*4 + 0xe270c]
mov dword [esp + 0xc], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [ecx + eax*4 + 0x22e]
test ax, ax
mov dword [esp + 0x34], eax
je 0x1003f91c
cmp dword [ebp + 0x10], 2
jne 0x1003f91c
or eax, 0xffffffff
mov ecx, 0xda
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
or eax, eax
mov ecx, 0xda
lea edi, [esp + 0x720]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov ecx, 0xda
lea edi, [esp + 0x3b8]
rep stosd dword es:[edi], eax
movzx eax, word [esp + 0x34]
cmp eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3b8], esi
mov dword [esp + 0x720], edx
mov dword [esp + 0x50], ecx
jl 0x1003f417
mov ecx, dword [esp + 0x3c]
lea edi, [esp + 0x54]
mov dword [esp + 0xc], edi
lea edi, [esp + 0x724]
mov dword [esp + 0x10], edi
lea edi, [edx - 1]
mov dword [esp + 0x18], edi
lea edi, [esp + 0x3bc]
add ecx, 1
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
sub esi, edx
lea ecx, [edx + 1]
sub edi, edx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
add edx, esi
js 0x1003f39a
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x1c], eax
lea edx, [esi + ecx]
cmp edx, dword [esp + 0x28]
jg 0x1003f3b0
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x1003f3c5
mov edx, dword [esp + 0x10]
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x28]
jg 0x1003f3d8
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
add edx, 4
mov dword [esp + 0x10], edx
lea edx, [edi + eax]
test edx, edx
jl 0x1003f3ec
mov eax, dword [esp + 0xc]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0xc], eax
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x28]
jg 0x1003f402
mov eax, dword [esp + 0xc]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0xc], eax
mov eax, 1
sub dword [esp + 0x18], eax
add ecx, eax
sub dword [esp + 0x14], eax
jne 0x1003f385
cmp dword [esp + 0x3b8], 0
jl 0x1003fe04
lea eax, [esp + 0x3b8]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x720], 0
jl 0x1003f907
lea ecx, [esp + 0x720]
mov dword [esp + 0x40], ecx
lea esp, [esp]
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
jl 0x1003f8f7
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x224]
mov esi, dword [ebp + 0xc]
mov edx, dword [edx + esi*4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x50]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov edx, dword [esp + 0x34]
add eax, ecx
mov eax, dword [edx + eax*4 + 0xe09c4]
test eax, eax
mov dword [esp + 0xc], eax
je 0x1003f8d5
mov esi, dword [ebp + 0x1c]
sub esi, dword [ebp + 0x14]
mov dword [esp + 0x28], esi
jmp 0x1003f4c4
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax]
movzx edx, byte [eax + 3]
add edx, ecx
cmp edx, esi
jle 0x1003f4dd
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8c9
movzx ecx, byte [eax + 2]
mov esi, dword [ebp + 0x14]
sub esi, ecx
mov dword [esp + 0x2c], esi
jns 0x1003f4f8
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8c9
movzx ecx, byte [eax + 0x27]
mov edi, ebx
sub edi, dword [ebp + 0x18]
cmp ecx, edi
jle 0x1003f511
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8c9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
je 0x1003f7f4
mov eax, dword [ebp + 0x14]
lea edi, [edx + eax]
mov edx, dword [ebp + 0x18]
add ecx, edx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7c]
mov eax, edx
sub eax, ecx
sub eax, 1
lea ecx, [eax + 1]
mov dword [esp + 0x1c], edi
lea edx, [edx - 1]
mov dword [esp + 0x24], ecx
jns 0x1003f550
xor eax, eax
mov dword [esp + 0x24], eax
cmp eax, edx
jge 0x1003f5d2
mov ecx, edi
sub ecx, esi
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
jle 0x1003f5b8
mov ecx, esi
mov esi, dword [ebp + 0x24]
imul ecx, ebx
add eax, ecx
lea edi, [eax + esi]
mov esi, dword [ebp + 0x20]
lea eax, [esi + eax*4]
mov esi, dword [ebp + 0x18]
add esi, 0xffffffff
add ecx, esi
mov esi, dword [ebp + 0x20]
lea edx, [ebx*4]
lea ecx, [esi + ecx*4]
mov esi, dword [eax]
cmp esi, dword [ecx]
jne 0x1003f5b0
cmp byte [edi], 0
jne 0x1003f5b0
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
add ecx, edx
add eax, edx
add edi, ebx
cmp esi, dword [esp + 0x14]
jl 0x1003f590
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jge 0x1003f618
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f8c5
jne 0x1003f618
test eax, eax
jne 0x1003f618
mov ecx, edi
sub ecx, esi
test ecx, ecx
jle 0x1003f604
mov edi, dword [ebp + 0x20]
mov edx, esi
imul edx, ebx
lea edi, [edi + edx*4]
cmp dword [edi], 0
jg 0x1003f600
lea edx, [ebx*4]
add eax, 1
add edi, edx
cmp eax, ecx
jl 0x1003f5eb
mov edi, dword [esp + 0x1c]
cmp eax, ecx
jge 0x1003f618
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8c9
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0x7c]
lea eax, [eax + ecx - 1]
cmp eax, ebx
lea edx, [ecx - 1]
mov dword [esp + 0x18], eax
jl 0x1003f638
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
cmp edx, eax
jge 0x1003f6a1
sub edi, esi
test edi, edi
mov dword [esp + 0x10], 0
jle 0x1003f687
mov eax, esi
mov esi, dword [ebp + 0x20]
imul eax, ebx
add edx, eax
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x18]
add eax, esi
mov esi, dword [ebp + 0x20]
lea ecx, [ebx*4]
lea eax, [esi + eax*4]
mov esi, dword [edx]
cmp esi, dword [eax]
jne 0x1003f67f
add dword [esp + 0x10], 1
add eax, ecx
add edx, ecx
cmp dword [esp + 0x10], edi
jl 0x1003f66a
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], edi
jge 0x1003f69d
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f8c5
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x80]
mov dword [esp + 0x38], eax
mov eax, esi
sub eax, ecx
lea ecx, [esi - 1]
jns 0x1003f6b9
xor eax, eax
cmp eax, ecx
jg 0x1003f75e
mov edx, ecx
sub edx, eax
add edx, 1
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
jle 0x1003f74c
mov edx, dword [esp + 0x24]
imul ecx, ebx
mov esi, dword [ebp + 0x24]
add edx, ecx
add esi, edx
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x20]
mov eax, ebx
neg eax
add eax, eax
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x38]
mov edi, ebx
neg edi
add eax, eax
add esi, ecx
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + esi*4]
jmp 0x1003f714
mov edx, dword [esp + 0x30]
mov esi, dword [ecx]
cmp esi, dword [edx]
jne 0x1003f744
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x1003f744
mov esi, dword [esp + 0x10]
add dword [esp + 0x18], edi
add edx, eax
add esi, 1
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
add ecx, eax
cmp esi, edx
mov dword [esp + 0x10], esi
jl 0x1003f710
jmp 0x1003f748
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x10], edx
jge 0x1003f75e
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1c]
jmp 0x1003f8c1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x80]
mov ecx, dword [ebp + 0x1c]
lea eax, [eax + edi - 1]
cmp eax, ecx
jl 0x1003f775
lea eax, [ecx - 1]
cmp edi, eax
jg 0x1003f7f4
sub eax, edi
lea esi, [eax + 1]
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
jle 0x1003f7de
mov edx, dword [esp + 0x24]
mov esi, dword [ebp + 0x24]
mov eax, edi
imul eax, ebx
add edx, eax
lea edi, [edx + esi]
mov esi, dword [ebp + 0x20]
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x38]
add esi, eax
mov eax, dword [ebp + 0x20]
lea ecx, [ebx*4]
lea eax, [eax + esi*4]
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x1003f7da
cmp byte [edi], 0
jne 0x1003f7da
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
add eax, ecx
add edx, ecx
add edi, ebx
cmp dword [esp + 0x10], esi
jl 0x1003f7b8
jmp 0x1003f7de
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jge 0x1003f7f4
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xc], edx
jmp 0x1003f8c5
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0xc]
add eax, ecx
movzx edi, byte [esi]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx + eax*4 + 0x22c]
movzx edx, word [esi + 6]
mov eax, edx
imul eax, ecx
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 1]
imul eax, edi
sub eax, edx
imul eax, ecx
test edi, edi
jle 0x1003f8a2
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
movzx edx, byte [esi + 1]
test edx, edx
jle 0x1003f88d
mov edx, dword [esp + 0x24]
mov edi, ecx
sub edx, ecx
movzx ecx, byte [esi + 1]
mov dword [esp + 0x14], ecx
mov cl, byte [edi]
cmp cl, byte [edx + edi]
jne 0x1003f87f
test cl, cl
jne 0x1003f87a
add dword [esp + 0x18], 1
jmp 0x1003f87f
add dword [esp + 0x2c], 1
add edi, 1
sub dword [esp + 0x14], 1
jne 0x1003f868
mov ecx, dword [esp + 0x38]
movzx edx, byte [esi + 1]
add dword [esp + 0x24], edx
add ecx, ebx
sub dword [esp + 0x30], 1
mov dword [esp + 0x38], ecx
jne 0x1003f850
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
imul edx, edx, 0x64
cmp edx, dword [esp + 0x1c]
jl 0x1003f8be
imul ecx, ecx, 0x64
cmp ecx, eax
jge 0x1003fe1a
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1003f4c0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
add eax, 1
cmp dword [esp + eax*4 + 0x50], 0
mov dword [esp + 0x48], eax
lea eax, [esp + eax*4 + 0x50]
jge 0x1003f48f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, 4
cmp dword [ecx], 0
mov dword [esp + 0x40], ecx
jge 0x1003f450
add eax, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jge 0x1003f430
jmp 0x1003fe04
test edi, edi
je 0x1003fe04
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
jmp 0x1003f934
mov ecx, dword [esp + 0x28]
movzx eax, byte [edi]
movzx edx, byte [edi + 3]
mov dword [esp + 0x38], eax
add eax, edx
cmp eax, ecx
mov dword [esp + 0x34], eax
jg 0x1003fdf5
movzx ecx, byte [edi + 2]
mov eax, dword [ebp + 0x14]
neg ecx
mov dword [esp + 0x14], ecx
add ecx, eax
mov dword [esp + 0x2c], ecx
js 0x1003fdf5
movzx eax, byte [edi + 0x27]
mov edx, ebx
sub edx, dword [ebp + 0x18]
cmp eax, edx
jg 0x1003fdf5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
je 0x1003fc62
mov esi, dword [ebp + 0x14]
mov edx, dword [esp + 0x34]
add edx, esi
mov esi, dword [ebp + 0x18]
add eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x7c]
mov eax, dword [ebp + 0x18]
sub eax, esi
sub eax, 1
lea esi, [eax + 1]
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], esi
jns 0x1003f9b7
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, dword [ebp + 0x18]
add esi, 0xffffffff
cmp eax, esi
jge 0x1003fa3d
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fa32
mov esi, dword [ebp + 0x24]
imul ecx, ebx
add eax, ecx
add esi, eax
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 0x20]
lea eax, [esi + eax*4]
mov esi, dword [ebp + 0x18]
add esi, 0xffffffff
add ecx, esi
mov esi, dword [ebp + 0x20]
lea edx, [ebx*4]
lea ecx, [esi + ecx*4]
mov esi, dword [eax]
cmp esi, dword [ecx]
jne 0x1003fa26
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
jne 0x1003fa26
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x1c]
add dword [esp + 0x24], ebx
add ecx, edx
add eax, edx
cmp dword [esp + 0x10], esi
jl 0x1003f9fe
jmp 0x1003fa2a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x10], esi
jge 0x1003fa85
jmp 0x1003fdf5
jne 0x1003fa85
test eax, eax
jne 0x1003fa85
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x1003fa7d
mov esi, dword [ebp + 0x20]
mov edx, ecx
imul edx, ebx
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x1c]
mov edi, edi
cmp dword [edx], 0
jg 0x1003fa79
lea esi, [ebx*4]
add edx, esi
mov esi, dword [esp + 0x1c]
add eax, 1
cmp eax, esi
jl 0x1003fa60
mov edx, dword [esp + 0x48]
cmp eax, esi
jl 0x1003fdf5
mov esi, dword [esp + 0x44]
lea eax, [esi - 1]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
lea eax, [eax + esi - 1]
cmp eax, ebx
mov dword [esp + 0x24], eax
jl 0x1003faa9
lea eax, [ebx - 1]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], eax
jge 0x1003fb12
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fb08
mov esi, dword [ebp + 0x20]
mov eax, ecx
mov ecx, dword [esp + 0x20]
imul eax, ebx
add ecx, eax
lea ecx, [esi + ecx*4]
mov esi, dword [esp + 0x24]
add eax, esi
mov esi, dword [ebp + 0x20]
lea edx, [ebx*4]
lea eax, [esi + eax*4]
mov esi, dword [ecx]
cmp esi, dword [eax]
mov esi, dword [esp + 0x1c]
jne 0x1003fb00
add dword [esp + 0x10], 1
add eax, edx
add ecx, edx
cmp dword [esp + 0x10], esi
jl 0x1003fae7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], esi
jl 0x1003fdf5
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x80]
mov dword [esp + 0x40], eax
mov eax, ecx
sub eax, edx
lea edx, [ecx - 1]
jns 0x1003fb2a
xor eax, eax
cmp eax, edx
jg 0x1003fbb7
mov esi, edx
sub esi, eax
lea eax, [esi + 1]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jle 0x1003fbaf
mov edi, dword [ebp + 0x24]
mov ecx, edx
mov edx, dword [esp + 0x30]
imul ecx, ebx
add edx, ecx
add edi, edx
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 0x20]
mov eax, ebx
neg eax
add eax, eax
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x40]
mov esi, ebx
neg esi
add eax, eax
add ecx, edi
mov edi, dword [ebp + 0x20]
lea ecx, [edi + ecx*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edi, dword [edi]
cmp edi, dword [edx]
jne 0x1003fba7
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
jne 0x1003fba7
add dword [esp + 0x24], eax
add dword [esp + 0x18], esi
add ecx, 1
add edx, eax
cmp ecx, dword [esp + 0x20]
jl 0x1003fb81
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x1003fdf5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov esi, dword [esp + 0x48]
mov ecx, dword [ebp + 0x1c]
lea eax, [eax + esi - 1]
cmp eax, ecx
jl 0x1003fbd2
lea eax, [ecx - 1]
cmp esi, eax
jg 0x1003fc62
sub eax, esi
lea edx, [eax + 1]
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
jle 0x1003fc58
mov edx, dword [esp + 0x30]
mov eax, esi
mov esi, dword [ebp + 0x24]
imul eax, ebx
add edx, eax
add esi, edx
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 0x20]
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x40]
add eax, esi
mov esi, dword [ebp + 0x20]
lea ecx, [ebx*4]
lea eax, [esi + eax*4]
jmp 0x1003fc24
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x1003fc54
mov esi, dword [esp + 0x30]
cmp byte [esi], 0
jne 0x1003fc54
mov esi, dword [esp + 0x10]
add dword [esp + 0x30], ebx
add edx, ecx
add esi, 1
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x20]
add eax, ecx
cmp esi, edx
mov dword [esp + 0x10], esi
jl 0x1003fc20
jmp 0x1003fc58
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x10], edx
jl 0x1003fdf5
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jle 0x1003fd50
movzx esi, byte [edi + 1]
mov ecx, dword [edi + 8]
mov edx, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
mov eax, esi
cmp eax, 4
jb 0x1003fcb4
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1003fcb8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1003fca0
test eax, eax
je 0x1003fd1d
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd19
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd19
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd19
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x1003fd19
test esi, esi
mov edi, dword [esp + 0xc]
mov eax, 1
jg 0x1003fd1f
or eax, 0xffffffff
jmp 0x1003fd1f
mov edi, dword [esp + 0xc]
xor eax, eax
test eax, eax
jne 0x1003fd50
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
add eax, 1
add ecx, esi
add edx, ebx
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], edx
jl 0x1003fc93
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x38]
jl 0x1003fdf5
movzx eax, word [edi + 4]
test ax, ax
jbe 0x1003ff41
movzx eax, byte [edi + 0x27]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x34]
add edx, eax
cmp edx, ebx
jl 0x1003fd7e
mov edx, ebx
mov eax, dword [ebp + 0x14]
lea esi, [ecx + eax]
cmp esi, dword [ebp + 0x1c]
jl 0x1003fd8d
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
jge 0x1003fde4
mov esi, dword [esp + 0x14]
add eax, esi
mov esi, dword [ebp + 0x20]
imul eax, ebx
add edx, eax
lea edx, [esi + edx*4 - 4]
mov esi, dword [ebp + 0x18]
add eax, esi
sub ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x20]
lea esi, [esi + eax*4 - 4]
mov dword [esp + 0x34], ecx
xor eax, eax
cmp dword [ebp + 0x18], eax
jle 0x1003fdca
mov eax, dword [esi]
mov ecx, dword [edx]
sub ecx, eax
add dword [esp + 0x38], ecx
lea eax, [ebx*4]
add esi, eax
add edx, eax
sub dword [esp + 0x34], 1
jne 0x1003fdc1
movzx eax, word [edi + 4]
movzx edx, ax
cmp dword [esp + 0x38], edx
je 0x1003ff41
mov edi, dword [edi + 0x1c]
test edi, edi
mov dword [esp + 0xc], edi
jne 0x1003f930
sub dword [esp + 0x3c], 1
jns 0x1003f171
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
movzx ecx, byte [eax + 0x27]
lea edx, [eax + 0xc]
push edx
movzx edx, byte [eax + 3]
movzx eax, byte [eax]
push ecx
mov ecx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 8]
push edx
push ecx
mov esi, edi
call fcn.1003f050
mov ecx, dword [esp + 0x24]
movzx eax, byte [ecx + 0x27]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x7c]
add esi, eax
movzx eax, byte [ecx + 3]
movzx ecx, byte [ecx]
add eax, ecx
add eax, dword [edx + 0x80]
add esi, edi
add esp, 0x18
cmp esi, ebx
jl 0x1003fe74
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003fe84
mov eax, dword [ebp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0xc]
movzx ecx, byte [ecx + 2]
neg ecx
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jge 0x1004006a
mov edx, esi
sub edx, edi
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x14]
add ecx, edx
mov edx, dword [ebp + 0x24]
imul ecx, ebx
add edi, ecx
add edx, edi
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
lea edx, [esi + ecx]
mov ecx, dword [ebp + 0x20]
lea edx, [ecx + edx*4]
lea edi, [ecx + edi*4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], eax
jmp 0x1003fed7
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x1003fee3
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x1003fef6
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1003ff0c
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x1003ff02
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.10100550
lea eax, [ebx*4]
add dword [esp + 0x20], eax
add dword [esp + 0x34], eax
add edi, ebx
add esp, 0xc
sub dword [esp + 0x40], 1
mov dword [esp + 0x20], edi
jne 0x1003fed3
jmp 0x1004006a
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
movzx ecx, byte [eax + 0x27]
lea edx, [eax + 0xc]
push edx
movzx edx, byte [eax + 3]
movzx eax, byte [eax]
push ecx
mov ecx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 8]
push edx
push ecx
mov esi, edi
call fcn.1003f050
mov ecx, dword [esp + 0x24]
movzx eax, byte [ecx + 0x27]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x7c]
add esi, eax
movzx eax, byte [ecx + 3]
movzx ecx, byte [ecx]
add eax, ecx
add eax, dword [edx + 0x80]
add esi, edi
add esp, 0x18
cmp esi, ebx
jl 0x1003ff9b
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003ffab
mov eax, dword [ebp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0xc]
movzx ecx, byte [ecx + 2]
neg ecx
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jge 0x1004006a
mov edx, esi
sub edx, edi
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x14]
add ecx, edx
mov edx, dword [ebp + 0x24]
imul ecx, ebx
add edi, ecx
add edx, edi
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
lea edx, [esi + ecx]
mov ecx, dword [ebp + 0x20]
lea edx, [ecx + edx*4]
lea edi, [ecx + edi*4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], eax
jmp 0x10040004
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x10040010
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x10040023
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1004003a
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
nop
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x10040030
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.10100550
lea eax, [ebx*4]
add dword [esp + 0x20], eax
add dword [esp + 0x34], eax
add edi, ebx
add esp, 0xc
sub dword [esp + 0x40], 1
mov dword [esp + 0x20], edi
jne 0x10040000
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + 3]
movzx ecx, byte [ecx]
mov edx, dword [ebp + 8]
add eax, ecx
add eax, dword [edx + 0x80]
pop edi
pop esi
mov esp, ebp
pop ebp
ret