Function at 0x1003f180
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 0x1003f1aa
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 0x1003fe34
mov edi, ecx
xor edx, edx
imul edi, ebx
add ecx, 1
cmp esi, edx
mov dword [esp + 0x2c], edx
jle 0x1003f220
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 0x1003f1fb
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 0x1003f260
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 0x1003f264
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 0x1003f243
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 0x1003f260
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 0x1003f264
mov ecx, dword [esp + 0x2c]
test esi, esi
je 0x1003fe3f
xor edi, edi
cmp dword [ebp + 0x10], 2
mov dword [esp + 0xc], edi
jne 0x1003f2ab
mov eax, dword [ebp + 0x14]
add eax, 2
cmp eax, dword [ebp + 0x1c]
jge 0x1003fe3f
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 0x1003f2fa
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x1003f2e0
mov eax, dword [ebp + 0x14]
add eax, 1
cmp eax, dword [ebp + 0x1c]
jge 0x1003fe3f
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 0x1003f2fa
test eax, eax
jne 0x1003f2fe
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 0x1003f94c
cmp dword [ebp + 0x10], 2
jne 0x1003f94c
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 0x1003f447
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 0x1003f3ca
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 0x1003f3e0
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 0x1003f3f5
mov edx, dword [esp + 0x10]
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x28]
jg 0x1003f408
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 0x1003f41c
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 0x1003f432
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 0x1003f3b5
cmp dword [esp + 0x3b8], 0
jl 0x1003fe34
lea eax, [esp + 0x3b8]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x720], 0
jl 0x1003f937
lea ecx, [esp + 0x720]
mov dword [esp + 0x40], ecx
lea esp, [esp]
cmp dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
jl 0x1003f927
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 0x1003f905
mov esi, dword [ebp + 0x1c]
sub esi, dword [ebp + 0x14]
mov dword [esp + 0x28], esi
jmp 0x1003f4f4
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax]
movzx edx, byte [eax + 3]
add edx, ecx
cmp edx, esi
jle 0x1003f50d
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8f9
movzx ecx, byte [eax + 2]
mov esi, dword [ebp + 0x14]
sub esi, ecx
mov dword [esp + 0x2c], esi
jns 0x1003f528
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8f9
movzx ecx, byte [eax + 0x27]
mov edi, ebx
sub edi, dword [ebp + 0x18]
cmp ecx, edi
jle 0x1003f541
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8f9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
je 0x1003f824
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 0x1003f580
xor eax, eax
mov dword [esp + 0x24], eax
cmp eax, edx
jge 0x1003f602
mov ecx, edi
sub ecx, esi
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
jle 0x1003f5e8
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 0x1003f5e0
cmp byte [edi], 0
jne 0x1003f5e0
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 0x1003f5c0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jge 0x1003f648
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f8f5
jne 0x1003f648
test eax, eax
jne 0x1003f648
mov ecx, edi
sub ecx, esi
test ecx, ecx
jle 0x1003f634
mov edi, dword [ebp + 0x20]
mov edx, esi
imul edx, ebx
lea edi, [edi + edx*4]
cmp dword [edi], 0
jg 0x1003f630
lea edx, [ebx*4]
add eax, 1
add edi, edx
cmp eax, ecx
jl 0x1003f61b
mov edi, dword [esp + 0x1c]
cmp eax, ecx
jge 0x1003f648
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1003f8f9
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 0x1003f668
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
cmp edx, eax
jge 0x1003f6d1
sub edi, esi
test edi, edi
mov dword [esp + 0x10], 0
jle 0x1003f6b7
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 0x1003f6af
add dword [esp + 0x10], 1
add eax, ecx
add edx, ecx
cmp dword [esp + 0x10], edi
jl 0x1003f69a
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], edi
jge 0x1003f6cd
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xc], ecx
jmp 0x1003f8f5
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 0x1003f6e9
xor eax, eax
cmp eax, ecx
jg 0x1003f78e
mov edx, ecx
sub edx, eax
add edx, 1
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
jle 0x1003f77c
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 0x1003f744
mov edx, dword [esp + 0x30]
mov esi, dword [ecx]
cmp esi, dword [edx]
jne 0x1003f774
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x1003f774
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 0x1003f740
jmp 0x1003f778
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x10], edx
jge 0x1003f78e
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1c]
jmp 0x1003f8f1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x80]
mov ecx, dword [ebp + 0x1c]
lea eax, [eax + edi - 1]
cmp eax, ecx
jl 0x1003f7a5
lea eax, [ecx - 1]
cmp edi, eax
jg 0x1003f824
sub eax, edi
lea esi, [eax + 1]
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
jle 0x1003f80e
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 0x1003f80a
cmp byte [edi], 0
jne 0x1003f80a
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 0x1003f7e8
jmp 0x1003f80e
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jge 0x1003f824
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xc], edx
jmp 0x1003f8f5
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 0x1003f8d2
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 0x1003f8bd
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 0x1003f8af
test cl, cl
jne 0x1003f8aa
add dword [esp + 0x18], 1
jmp 0x1003f8af
add dword [esp + 0x2c], 1
add edi, 1
sub dword [esp + 0x14], 1
jne 0x1003f898
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 0x1003f880
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
imul edx, edx, 0x64
cmp edx, dword [esp + 0x1c]
jl 0x1003f8ee
imul ecx, ecx, 0x64
cmp ecx, eax
jge 0x1003fe4a
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1003f4f0
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 0x1003f4bf
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, 4
cmp dword [ecx], 0
mov dword [esp + 0x40], ecx
jge 0x1003f480
add eax, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jge 0x1003f460
jmp 0x1003fe34
test edi, edi
je 0x1003fe34
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
jmp 0x1003f964
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 0x1003fe25
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 0x1003fe25
movzx eax, byte [edi + 0x27]
mov edx, ebx
sub edx, dword [ebp + 0x18]
cmp eax, edx
jg 0x1003fe25
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
je 0x1003fc92
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 0x1003f9e7
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, dword [ebp + 0x18]
add esi, 0xffffffff
cmp eax, esi
jge 0x1003fa6d
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fa62
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 0x1003fa56
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
jne 0x1003fa56
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 0x1003fa2e
jmp 0x1003fa5a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x10], esi
jge 0x1003fab5
jmp 0x1003fe25
jne 0x1003fab5
test eax, eax
jne 0x1003fab5
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x1003faad
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 0x1003faa9
lea esi, [ebx*4]
add edx, esi
mov esi, dword [esp + 0x1c]
add eax, 1
cmp eax, esi
jl 0x1003fa90
mov edx, dword [esp + 0x48]
cmp eax, esi
jl 0x1003fe25
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 0x1003fad9
lea eax, [ebx - 1]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], eax
jge 0x1003fb42
mov esi, edx
sub esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], esi
jle 0x1003fb38
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 0x1003fb30
add dword [esp + 0x10], 1
add eax, edx
add ecx, edx
cmp dword [esp + 0x10], esi
jl 0x1003fb17
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], esi
jl 0x1003fe25
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 0x1003fb5a
xor eax, eax
cmp eax, edx
jg 0x1003fbe7
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 0x1003fbdf
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 0x1003fbd7
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
jne 0x1003fbd7
add dword [esp + 0x24], eax
add dword [esp + 0x18], esi
add ecx, 1
add edx, eax
cmp ecx, dword [esp + 0x20]
jl 0x1003fbb1
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x1003fe25
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 0x1003fc02
lea eax, [ecx - 1]
cmp esi, eax
jg 0x1003fc92
sub eax, esi
lea edx, [eax + 1]
test edx, edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
jle 0x1003fc88
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 0x1003fc54
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x1003fc84
mov esi, dword [esp + 0x30]
cmp byte [esi], 0
jne 0x1003fc84
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 0x1003fc50
jmp 0x1003fc88
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x10], edx
jl 0x1003fe25
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jle 0x1003fd80
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 0x1003fce4
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1003fce8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1003fcd0
test eax, eax
je 0x1003fd4d
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd49
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd49
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1003fd37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003fd49
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x1003fd49
test esi, esi
mov edi, dword [esp + 0xc]
mov eax, 1
jg 0x1003fd4f
or eax, 0xffffffff
jmp 0x1003fd4f
mov edi, dword [esp + 0xc]
xor eax, eax
test eax, eax
jne 0x1003fd80
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 0x1003fcc3
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x38]
jl 0x1003fe25
movzx eax, word [edi + 4]
test ax, ax
jbe 0x1003ff71
movzx eax, byte [edi + 0x27]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x34]
add edx, eax
cmp edx, ebx
jl 0x1003fdae
mov edx, ebx
mov eax, dword [ebp + 0x14]
lea esi, [ecx + eax]
cmp esi, dword [ebp + 0x1c]
jl 0x1003fdbd
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0
jge 0x1003fe14
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 0x1003fdfa
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 0x1003fdf1
movzx eax, word [edi + 4]
movzx edx, ax
cmp dword [esp + 0x38], edx
je 0x1003ff71
mov edi, dword [edi + 0x1c]
test edi, edi
mov dword [esp + 0xc], edi
jne 0x1003f960
sub dword [esp + 0x3c], 1
jns 0x1003f1a1
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.1003f080
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 0x1003fea4
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003feb4
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 0x1004009a
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 0x1003ff07
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x1003ff13
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x1003ff26
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1003ff3c
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x1003ff32
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.10100160
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 0x1003ff03
jmp 0x1004009a
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.1003f080
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 0x1003ffcb
mov esi, ebx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1003ffdb
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 0x1004009a
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 0x10040034
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x10040040
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x28]
mov edx, dword [edx - 4]
sub edx, eax
cmp ecx, esi
jge 0x10040053
mov ecx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
cmp esi, ebx
jge 0x1004006a
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, esi
nop
sub dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x10040060
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push eax
push 0
push edi
call fcn.10100160
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 0x10040030
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