Function at 0x1003f120
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 0x1003f14a
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 0x1003fdd4
mov edi, ecx
xor edx, edx
imul edi, ebx
add ecx, 1
cmp esi, edx
mov dword [esp + 0x2c], edx
jle 0x1003f1c0
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 0x1003f19b
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 0x1003f200
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 0x1003f204
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 0x1003f1e3
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 0x1003f200
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 0x1003f204
mov ecx, dword [esp + 0x2c]
test esi, esi
je 0x1003fddf
xor edi, edi
cmp dword [ebp + 0x10], 2
mov dword [esp + 0xc], edi
jne 0x1003f24b
mov eax, dword [ebp + 0x14]
add eax, 2
cmp eax, dword [ebp + 0x1c]
jge 0x1003fddf
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 0x1003f29a
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x1003f280
mov eax, dword [ebp + 0x14]
add eax, 1
cmp eax, dword [ebp + 0x1c]
jge 0x1003fddf
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 0x1003f29a
test eax, eax
jne 0x1003f29e
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 0x1003f8ec
cmp dword [ebp + 0x10], 2
jne 0x1003f8ec
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 0x1003f3e7
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 0x1003f36a
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 0x1003f380
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 0x1003f395
mov edx, dword [esp + 0x10]
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x28]
jg 0x1003f3a8
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 0x1003f3bc
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 0x1003f3d2
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 0x1003f355
cmp dword [esp + 0x3b8], 0
jl 0x1003fdd4
lea eax, [esp + 0x3b8]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x720], 0
jl 0x1003f8d7
lea ecx, [esp + 0x720]
mov dword [esp + 0x40], ecx
lea esp, [esp]
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
jl 0x1003f8c7
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 0x1003f8a5
mov esi, dword [ebp + 0x1c]
sub esi, dword [ebp + 0x14]
mov dword [esp + 0x28], esi
jmp 0x1003f494
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax]
movzx edx, byte [eax + 3]
add edx, ecx
cmp edx, esi
jle 0x1003f4ad
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f899
movzx ecx, byte [eax + 2]
mov esi, dword [ebp + 0x14]
sub esi, ecx
mov dword [esp + 0x2c], esi
jns 0x1003f4c8
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f899
movzx ecx, byte [eax + 0x27]
mov edi, ebx
sub edi, dword [ebp + 0x18]
cmp ecx, edi
jle 0x1003f4e1
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f899
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
je 0x1003f7c4
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 0x1003f520
xor eax, eax
mov dword [esp + 0x24], eax
cmp eax, edx
jge 0x1003f5a2
mov ecx, edi
sub ecx, esi
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
jle 0x1003f588
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 0x1003f580
cmp byte [edi], 0
jne 0x1003f580
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 0x1003f560
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jge 0x1003f5e8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f895
jne 0x1003f5e8
test eax, eax
jne 0x1003f5e8
mov ecx, edi
sub ecx, esi
test ecx, ecx
jle 0x1003f5d4
mov edi, dword [ebp + 0x20]
mov edx, esi
imul edx, ebx
lea edi, [edi + edx*4]
cmp dword [edi], 0
jg 0x1003f5d0
lea edx, [ebx*4]
add eax, 1
add edi, edx
cmp eax, ecx
jl 0x1003f5bb
mov edi, dword [esp + 0x1c]
cmp eax, ecx
jge 0x1003f5e8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f899
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 0x1003f608
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
cmp edx, eax
jge 0x1003f671
sub edi, esi
test edi, edi
mov dword [esp + 0x10], 0
jle 0x1003f657
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 0x1003f64f
add dword [esp + 0x10], 1
add eax, ecx
add edx, ecx
cmp dword [esp + 0x10], edi
jl 0x1003f63a
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], edi
jge 0x1003f66d
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f895
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 0x1003f689
xor eax, eax
cmp eax, ecx
jg 0x1003f72e
mov edx, ecx
sub edx, eax
add edx, 1
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
jle 0x1003f71c
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 0x1003f6e4
mov edx, dword [esp + 0x30]
mov esi, dword [ecx]
cmp esi, dword [edx]
jne 0x1003f714
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x1003f714
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 0x1003f6e0
jmp 0x1003f718
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x10], edx
jge 0x1003f72e
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1c]
jmp 0x1003f891
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x80]
mov ecx, dword [ebp + 0x1c]
lea eax, [eax + edi - 1]
cmp eax, ecx
jl 0x1003f745
lea eax, [ecx - 1]
cmp edi, eax
jg 0x1003f7c4
sub eax, edi
lea esi, [eax + 1]
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
jle 0x1003f7ae
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 0x1003f7aa
cmp byte [edi], 0
jne 0x1003f7aa
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 0x1003f788
jmp 0x1003f7ae
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jge 0x1003f7c4
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xc], edx
jmp 0x1003f895
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 0x1003f872
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 0x1003f85d
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 0x1003f84f
test cl, cl
jne 0x1003f84a
add dword [esp + 0x18], 1
jmp 0x1003f84f
add dword [esp + 0x2c], 1
add edi, 1
sub dword [esp + 0x14], 1
jne 0x1003f838
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 0x1003f820
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
imul edx, edx, 0x64
cmp edx, dword [esp + 0x1c]
jl 0x1003f88e
imul ecx, ecx, 0x64
cmp ecx, eax
jge 0x1003fdea
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1003f490
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 0x1003f45f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, 4
cmp dword [ecx], 0
mov dword [esp + 0x40], ecx
jge 0x1003f420
add eax, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jge 0x1003f400
jmp 0x1003fdd4
test edi, edi
je 0x1003fdd4
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
jmp 0x1003f904
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 0x1003fdc5
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 0x1003fdc5
movzx eax, byte [edi + 0x27]
mov edx, ebx
sub edx, dword [ebp + 0x18]
cmp eax, edx
jg 0x1003fdc5
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
je 0x1003fc32
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 0x1003f987
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, dword [ebp + 0x18]
add esi, 0xffffffff
cmp eax, esi
jge 0x1003fa0d
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fa02
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 0x1003f9f6
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
jne 0x1003f9f6
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 0x1003f9ce
jmp 0x1003f9fa
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x10], esi
jge 0x1003fa55
jmp 0x1003fdc5
jne 0x1003fa55
test eax, eax
jne 0x1003fa55
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x1003fa4d
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 0x1003fa49
lea esi, [ebx*4]
add edx, esi
mov esi, dword [esp + 0x1c]
add eax, 1
cmp eax, esi
jl 0x1003fa30
mov edx, dword [esp + 0x48]
cmp eax, esi
jl 0x1003fdc5
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 0x1003fa79
lea eax, [ebx - 1]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], eax
jge 0x1003fae2
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fad8
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 0x1003fad0
add dword [esp + 0x10], 1
add eax, edx
add ecx, edx
cmp dword [esp + 0x10], esi
jl 0x1003fab7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], esi
jl 0x1003fdc5
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 0x1003fafa
xor eax, eax
cmp eax, edx
jg 0x1003fb87
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 0x1003fb7f
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 0x1003fb77
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
jne 0x1003fb77
add dword [esp + 0x24], eax
add dword [esp + 0x18], esi
add ecx, 1
add edx, eax
cmp ecx, dword [esp + 0x20]
jl 0x1003fb51
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x1003fdc5
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 0x1003fba2
lea eax, [ecx - 1]
cmp esi, eax
jg 0x1003fc32
sub eax, esi
lea edx, [eax + 1]
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
jle 0x1003fc28
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 0x1003fbf4
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x1003fc24
mov esi, dword [esp + 0x30]
cmp byte [esi], 0
jne 0x1003fc24
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 0x1003fbf0
jmp 0x1003fc28
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x10], edx
jl 0x1003fdc5
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jle 0x1003fd20
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 0x1003fc84
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1003fc88
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1003fc70
test eax, eax
je 0x1003fced
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fcd7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fce9
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fcd7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fce9
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fcd7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fce9
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x1003fce9
test esi, esi
mov edi, dword [esp + 0xc]
mov eax, 1
jg 0x1003fcef
or eax, 0xffffffff
jmp 0x1003fcef
mov edi, dword [esp + 0xc]
xor eax, eax
test eax, eax
jne 0x1003fd20
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 0x1003fc63
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x38]
jl 0x1003fdc5
movzx eax, word [edi + 4]
test ax, ax
jbe 0x1003ff11
movzx eax, byte [edi + 0x27]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x34]
add edx, eax
cmp edx, ebx
jl 0x1003fd4e
mov edx, ebx
mov eax, dword [ebp + 0x14]
lea esi, [ecx + eax]
cmp esi, dword [ebp + 0x1c]
jl 0x1003fd5d
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
jge 0x1003fdb4
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 0x1003fd9a
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 0x1003fd91
movzx eax, word [edi + 4]
movzx edx, ax
cmp dword [esp + 0x38], edx
je 0x1003ff11
mov edi, dword [edi + 0x1c]
test edi, edi
mov dword [esp + 0xc], edi
jne 0x1003f900
sub dword [esp + 0x3c], 1
jns 0x1003f141
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.1003f020
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 0x1003fe44
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003fe54
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 0x1004003a
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 0x1003fea7
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x1003feb3
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x1003fec6
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1003fedc
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x1003fed2
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.101004d0
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 0x1003fea3
jmp 0x1004003a
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.1003f020
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 0x1003ff6b
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003ff7b
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 0x1004003a
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 0x1003ffd4
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x1003ffe0
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x1003fff3
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1004000a
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
nop
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x10040000
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.101004d0
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 0x1003ffd0
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