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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa78
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov cl, cl
mov cl, cl
mov dword [esp + 0x30], 0xa
jmp 0x1004ef0e
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov edx, dword [esp + 0x30]
lea edx, [esi + edx + 1]
cmp edx, ebx
jg 0x1004fda4
test edi, edi
xor edx, edx
mov dword [esp + 0xc], edx
test bl, bl
mov edi, ecx
imul edi, ebx
cmp esi, edx
jle 0x1004ef8e
add edi, esi
mov esi, dword [esp + 0x30]
add esi, edi
mov esi, dword [eax + esi*4]
sub esi, dword [eax + edi*4 - 4]
mov dword [esp + 0x3c], edi
mov cl, cl
mov edi, dword [ebp + 0x1c]
add ecx, 1
cmp ecx, edi
jge 0x1004ef67
mov edx, dword [ebp + 0x18]
imul ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x30]
add edx, ecx
mov edx, dword [eax + edx*4]
sub edx, dword [eax + ecx*4 - 4]
mov edx, edx
mov ecx, dword [ebp + 0x14]
add ecx, 2
cmp ecx, edi
jge 0x1004efd7
mov edi, dword [ebp + 0x18]
imul ecx, ebx
add edi, ecx
mov ecx, dword [esp + 0x30]
add ecx, edi
mov ecx, dword [eax + ecx*4]
sub ecx, dword [eax + edi*4 - 4]
mov dword [esp + 0xc], ecx
mov ebp, ebp
jmp 0x1004efdb
add esi, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], esi
add esi, edi
mov esi, dword [eax + esi*4]
mov esi, esi
mov edi, dword [ebp + 0x1c]
add ecx, 1
cmp ecx, edi
jge 0x1004efb8
imul ecx, ebx
add ecx, dword [esp + 0x30]
add ecx, dword [ebp + 0x18]
mov edx, dword [eax + ecx*4]
mov ecx, ecx
mov ecx, dword [ebp + 0x14]
add ecx, 2
cmp ecx, edi
jge 0x1004efd7
imul ecx, ebx
add ecx, dword [esp + 0x30]
add ecx, dword [ebp + 0x18]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0xc], ecx
test cl, cl
jmp 0x1004efdb
mov ecx, dword [esp + 0xc]
test esi, esi
je 0x1004fdaf
xor edi, edi
mov dword [esp + 0x10], edi
xchg ebx, eax
xchg ebx, eax
cmp dword [ebp + 0x10], 2
jne 0x1004f02a
mov eax, dword [ebp + 0x14]
add eax, 2
cmp eax, dword [ebp + 0x1c]
jge 0x1004fdaf
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x220]
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]
mov dword [esp + 0x10], edi
test dh, dh
jmp 0x1004f085
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x1004f065
mov eax, dword [ebp + 0x14]
add eax, 1
cmp eax, dword [ebp + 0x1c]
jge 0x1004fdaf
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x220]
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]
mov dword [esp + 0x10], edi
test ah, ah
jmp 0x1004f085
test eax, eax
jne 0x1004f085
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x220]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + esi*4 + 0xe270c]
mov dword [esp + 0x10], edi
test al, al
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + ecx*4 + 0x22a], 0
je 0x1004f7ee
cmp dword [ebp + 0x10], 2
jne 0x1004f7ee
test ah, ah
test eax, 0x4aa1
test esi, esi
test esi, esi
or eax, 0xffffffff
mov ecx, 0xda
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
or eax, eax
mov ecx, 0xda
lea edi, [esp + 0x718]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov ecx, 0xda
lea edi, [esp + 0x3b0]
rep stosd dword es:[edi], eax
mov ecx, 0xda
mov eax, 1
test cl, cl
test al, al
test edx, edx
sub ecx, eax
jne 0x1004f0e8
mov dword [esp + 0x3b0], esi
test edx, edx
mov dword [esp + 0x718], edx
test eax, 0x45a8
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
test eax, 0x2c0f
test ecx, ecx
test ecx, ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp word [edi + ecx*4 + 0x22a], ax
mov dword [esp + 0x1c], eax
jb 0x1004f215
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x3b4]
lea ecx, [esp + 0x4c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0xc]
add eax, 1
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x71c]
sub esi, edx
sub edi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
lea eax, [edx + 1]
lea ecx, [edx - 1]
mov dword [esp + 0x18], edi
lea edx, [esi + ecx]
test edx, edx
jl 0x1004f181
mov edi, dword [esp + 8]
mov dword [edi], edx
add edi, 4
mov dword [esp + 8], edi
mov bh, bh
lea edx, [esi + eax]
cmp edx, dword [esp + 0x28]
jg 0x1004f199
mov edi, dword [esp + 8]
mov dword [edi], edx
add edi, 4
mov dword [esp + 8], edi
test cl, cl
test ecx, ecx
jl 0x1004f1ac
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
add edx, 4
mov dword [esp + 0x10], edx
test ah, ah
cmp eax, dword [esp + 0x28]
jg 0x1004f1c1
mov edx, dword [esp + 0x10]
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x10], edx
test bh, bh
mov edx, dword [esp + 0x18]
add edx, ecx
js 0x1004f1d7
mov edi, dword [esp + 0x24]
mov dword [edi], edx
add edi, 4
mov dword [esp + 0x24], edi
nop
mov edx, dword [esp + 0x18]
add edx, eax
cmp edx, dword [esp + 0x28]
jg 0x1004f1f2
mov edi, dword [esp + 0x24]
mov dword [edi], edx
add edi, 4
mov dword [esp + 0x24], edi
mov ebx, ebx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
movzx edx, word [edx + edi*4 + 0x22a]
add dword [esp + 0x1c], 1
add eax, 1
sub ecx, 1
cmp dword [esp + 0x1c], edx
jle 0x1004f16b
cmp dword [esp + 0x3b0], 0
jl 0x1004fda4
lea eax, [esp + 0x3b0]
mov dword [esp + 0x20], eax
mov edi, edi
cmp dword [esp + 0x718], 0
jl 0x1004f7d9
lea ecx, [esp + 0x718]
mov dword [esp + 0x34], ecx
lea esp, [esp]
cmp dword [esp + 0x48], 0
mov dword [esp + 0x38], 0
jl 0x1004f7c9
mov eax, dword [eax]
mov ecx, dword [ecx]
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 + 0x48]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x220]
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
add edx, ecx
mov edi, dword [eax + edx*4 + 0xe09c4]
mov dword [esp + 0x10], edi
test eax, 0x3a52
test edi, edi
je 0x1004f7a7
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1004f2c4
mov eax, dword [esp + 0x24]
movzx ecx, byte [edi + 3]
movzx edx, byte [edi]
add ecx, edx
cmp ecx, eax
jle 0x1004f2df
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov cl, cl
jmp 0x1004f79b
movzx eax, byte [edi + 2]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
jns 0x1004f2f8
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov edx, edx
jmp 0x1004f79b
movzx eax, byte [edi + 0x27]
mov edx, ebx
sub edx, dword [ebp + 0x18]
cmp eax, edx
jle 0x1004f313
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov edx, edx
jmp 0x1004f79b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x74], 0
je 0x1004f69f
test bh, bh
mov al, al
movzx ecx, byte [edi + 2]
mov eax, dword [ebp + 0x14]
mov edx, eax
sub edx, ecx
mov ecx, ecx
movzx ecx, byte [edi + 3]
movzx esi, byte [edi]
add ecx, eax
add esi, ecx
mov dword [esp + 0x2c], esi
mov ebp, ebp
push edx
pop edx
movzx ecx, byte [edi + 0x27]
mov eax, dword [ebp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
test edi, edi
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x78]
sub eax, 1
test eax, 0x4dc3
mov cl, cl
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
test ah, ah
test eax, eax
jge 0x1004f37d
xor eax, eax
test eax, 0x7582
mov dword [esp + 0x14], eax
test bh, bh
mov ecx, dword [ebp + 0x18]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x1004f426
mov ecx, esi
sub ecx, edx
test ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
jle 0x1004f410
mov esi, dword [ebp + 0x24]
mov ecx, edx
imul ecx, ebx
add eax, ecx
add esi, eax
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0x20]
lea eax, [esi + eax*4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
add eax, 0xffffffff
add ecx, eax
mov eax, dword [esp + 8]
lea edi, [ebx*4]
lea esi, [esi + ecx*4]
nop
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
cmp ecx, dword [esi]
jne 0x1004f402
mov ecx, dword [esp + 0x28]
cmp byte [ecx], 0
jne 0x1004f402
mov ecx, dword [esp + 0xc]
add dword [esp + 0x1c], edi
add dword [esp + 0x28], ebx
add eax, 1
add esi, edi
cmp eax, ecx
jl 0x1004f3d0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
jmp 0x1004f414
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
jmp 0x1004f414
mov eax, dword [esp + 8]
cmp eax, ecx
jge 0x1004f489
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov esi, esi
jmp 0x1004f79b
jne 0x1004f489
test eax, eax
jne 0x1004f489
mov dword [esp + 8], eax
mov eax, esi
sub eax, edx
test eax, eax
mov dword [esp + 0xc], eax
jle 0x1004f475
mov ecx, dword [ebp + 0x20]
mov eax, edx
imul eax, ebx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0xc]
jmp 0x1004f454
mov ecx, dword [esp + 0x40]
cmp dword [ecx], 0
jg 0x1004f475
add dword [esp + 8], 1
lea eax, [ebx*4]
add ecx, eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 8], eax
mov dword [esp + 0x40], ecx
jl 0x1004f450
cmp dword [esp + 8], eax
jge 0x1004f489
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov esi, esi
jmp 0x1004f79b
mov eax, dword [esp + 0x18]
lea ecx, [eax - 1]
mov dword [esp + 0x40], ecx
test ah, ah
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x78]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x28], eax
test al, al
cmp eax, ebx
jl 0x1004f4b3
lea eax, [ebx - 1]
mov dword [esp + 0x28], eax
test edx, edx
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jge 0x1004f52f
mov eax, esi
sub eax, edx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
jle 0x1004f517
mov esi, dword [ebp + 0x20]
mov eax, edx
imul eax, ebx
add ecx, eax
lea ecx, [esi + ecx*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
add eax, ecx
lea esi, [esi + eax*4]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
cmp ecx, dword [esi]
jne 0x1004f513
add dword [esp + 8], 1
lea eax, [ebx*4]
add dword [esp + 0x1c], eax
add esi, eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 8], eax
jl 0x1004f4ed
mov esi, dword [esp + 0x2c]
cmp dword [esp + 8], eax
jge 0x1004f52b
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test dl, dl
jmp 0x1004f79b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
test ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, edx
sub eax, dword [ecx + 0x7c]
mov ebp, ebp
lea ecx, [edx - 1]
mov ah, ah
test eax, eax
jge 0x1004f54c
xor eax, eax
mov ebx, ebx
cmp eax, ecx
jg 0x1004f5ee
mov edx, ecx
sub edx, eax
add edx, 1
test edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
jle 0x1004f5da
mov edx, dword [esp + 0x14]
imul ecx, ebx
mov esi, dword [ebp + 0x24]
add edx, ecx
add esi, edx
mov eax, ebx
neg eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x20]
mov eax, ebx
neg eax
lea edx, [esi + edx*4]
add eax, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
add eax, eax
add edx, ecx
lea ecx, [esi + edx*4]
mov edx, dword [ecx]
mov esi, dword [esp + 0x1c]
cmp edx, dword [esi]
jne 0x1004f5d2
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x1004f5d2
add esi, dword [esp + 0x28]
add dword [esp + 8], 1
mov edx, dword [esp + 0xc]
add dword [esp + 0x1c], eax
add ecx, eax
cmp dword [esp + 8], edx
mov dword [esp + 0x18], esi
jl 0x1004f5a0
jmp 0x1004f5d6
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
cmp dword [esp + 8], edx
jge 0x1004f5ee
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov esi, esi
jmp 0x1004f79b
nop
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
lea eax, [ecx + esi - 1]
test eax, eax
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
jl 0x1004f607
lea eax, [ecx - 1]
test dl, dl
cmp esi, eax
jg 0x1004f69f
sub eax, esi
lea edx, [eax + 1]
test edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0x18], edx
jle 0x1004f68b
mov edx, dword [esp + 0x14]
mov eax, esi
mov esi, dword [ebp + 0x24]
imul eax, ebx
add edx, eax
add esi, edx
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x20]
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x40]
add esi, eax
mov eax, dword [ebp + 0x20]
lea ecx, [ebx*4]
lea eax, [eax + esi*4]
jmp 0x1004f657
mov edx, dword [esp + 0x40]
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x1004f687
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
jne 0x1004f687
mov esi, dword [esp + 8]
add dword [esp + 0x14], ebx
add edx, ecx
add esi, 1
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
add eax, ecx
cmp esi, edx
mov dword [esp + 8], esi
jl 0x1004f653
jmp 0x1004f68b
mov edx, dword [esp + 0x18]
cmp dword [esp + 8], edx
jge 0x1004f69f
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test al, al
jmp 0x1004f79b
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0x24]
add ecx, edx
mov dword [esp + 0x40], ecx
test ebx, ebx
xor eax, eax
mov dword [esp + 0x2c], eax
mov ah, ah
mov dword [esp + 0x1c], eax
push edx
pop edx
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
imul eax, ecx
push ebx
pop ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
movzx esi, word [edx + ecx*4 + 0x228]
movzx edx, word [edi + 6]
imul esi, edx
mov dword [esp + 0x18], esi
test ah, ah
movzx edx, word [edi + 6]
sub eax, edx
mov edx, dword [ebp + 8]
movzx ecx, word [edx + ecx*4 + 0x228]
imul eax, ecx
mov dword [esp + 0x28], eax
mov dh, dh
xor eax, eax
cmp byte [edi], al
mov dword [esp + 0xc], eax
jbe 0x1004f76f
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
nop
movzx edx, byte [edi + 1]
mov ecx, edx
imul ecx, eax
add ecx, dword [edi + 8]
test ebx, ebx
test edx, edx
jle 0x1004f75b
mov eax, dword [esp + 0x14]
mov esi, ecx
sub esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [esi + eax]
jne 0x1004f74b
test cl, cl
jne 0x1004f744
add dword [esp + 0x1c], 1
test edx, edx
jmp 0x1004f74b
add dword [esp + 0x2c], 1
test ebx, ebx
add eax, 1
sub edx, 1
jne 0x1004f730
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov bh, bh
movzx ecx, byte [edi]
add dword [esp + 0x14], ebx
add eax, 1
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x1004f710
test eax, 0xb55
push ebx
pop ebx
mov eax, dword [esp + 0x2c]
imul eax, eax, 0x64
cmp eax, esi
jl 0x1004f792
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x64
cmp eax, dword [esp + 0x28]
jge 0x1004fdba
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov al, al
test edi, edi
jne 0x1004f2c0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
add eax, 1
cmp dword [esp + eax*4 + 0x48], 0
mov dword [esp + 0x38], eax
lea eax, [esp + eax*4 + 0x48]
jge 0x1004f280
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add ecx, 4
cmp dword [ecx], 0
mov dword [esp + 0x34], ecx
jge 0x1004f250
add eax, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jge 0x1004f230
jmp 0x1004fda4
test edi, edi
je 0x1004fda4
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1004f806
mov eax, dword [esp + 0x24]
movzx edx, byte [edi + 3]
movzx ecx, byte [edi]
add edx, ecx
cmp edx, eax
jle 0x1004f821
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov ch, ch
jmp 0x1004fd9c
movzx edx, byte [edi + 2]
mov eax, dword [ebp + 0x14]
sub eax, edx
jns 0x1004f83a
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test bl, bl
jmp 0x1004fd9c
movzx edx, byte [edi + 0x27]
mov ecx, ebx
sub ecx, dword [ebp + 0x18]
cmp edx, ecx
jle 0x1004f855
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov al, al
jmp 0x1004fd9c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x74], 0
je 0x1004fbe1
mov ch, ch
push edx
pop edx
movzx ecx, byte [edi + 2]
mov eax, dword [ebp + 0x14]
mov edx, eax
sub edx, ecx
xchg ebx, eax
xchg ebx, eax
movzx ecx, byte [edi + 3]
movzx esi, byte [edi]
add ecx, eax
add esi, ecx
mov dword [esp + 0x1c], esi
test eax, 0x5499
test eax, 0x3500
movzx ecx, byte [edi + 0x27]
mov eax, dword [ebp + 0x18]
add ecx, eax
mov dword [esp + 0x20], ecx
push eax
pop eax
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x78]
sub eax, 1
mov ah, ah
push ecx
pop ecx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
test ah, ah
test eax, eax
jge 0x1004f8bf
xor eax, eax
test edi, edi
mov dword [esp + 0x18], eax
test bh, bh
mov ecx, dword [ebp + 0x18]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x1004f954
mov ecx, esi
sub ecx, edx
test ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
jle 0x1004f940
mov edi, dword [ebp + 0x24]
mov ecx, edx
imul ecx, ebx
add eax, ecx
add edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0x20]
lea edi, [edi + eax*4]
mov eax, dword [ebp + 0x18]
add eax, 0xffffffff
add ecx, eax
mov eax, dword [ebp + 0x20]
lea esi, [ebx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x1004f934
mov ecx, dword [esp + 0x14]
cmp byte [ecx], 0
jne 0x1004f934
add dword [esp + 8], 1
mov ecx, dword [esp + 0xc]
add dword [esp + 0x14], ebx
add eax, esi
add edi, esi
cmp dword [esp + 8], ecx
jl 0x1004f90c
jmp 0x1004f938
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 8], ecx
jge 0x1004f9bc
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test ch, ch
jmp 0x1004fd9c
jne 0x1004f9bc
test eax, eax
jne 0x1004f9bc
mov dword [esp + 8], eax
mov eax, esi
sub eax, edx
test eax, eax
mov dword [esp + 0xc], eax
jle 0x1004f9a5
mov ecx, dword [ebp + 0x20]
mov eax, edx
imul eax, ebx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0xc]
jmp 0x1004f984
mov ecx, dword [esp + 0x44]
cmp dword [ecx], 0
jg 0x1004f9a5
add dword [esp + 8], 1
lea eax, [ebx*4]
add ecx, eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 8], eax
mov dword [esp + 0x44], ecx
jl 0x1004f980
cmp dword [esp + 8], eax
jge 0x1004f9bc
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test eax, 0x4e8f
jmp 0x1004fd9c
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
mov dword [esp + 0x20], ecx
test ebx, ebx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x78]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x2c], eax
mov cl, cl
cmp eax, ebx
jl 0x1004f9e6
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
test ebx, ebx
cmp dword [esp + 0x20], eax
jge 0x1004fa6c
mov eax, esi
sub eax, edx
xor ecx, ecx
test eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jle 0x1004fa56
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x20]
mov eax, edx
imul eax, ebx
add ecx, eax
lea ecx, [esi + ecx*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 8]
lea esi, [esi + eax*4]
jmp 0x1004fa2a
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x1004fa4e
lea eax, [ebx*4]
add dword [esp + 0x14], eax
add ecx, 1
add esi, eax
cmp ecx, dword [esp + 0xc]
mov dword [esp + 0x44], esi
jl 0x1004fa26
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
cmp ecx, eax
jge 0x1004fa68
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test ecx, ecx
jmp 0x1004fd9c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
test bl, bl
mov ecx, dword [ebp + 8]
mov eax, edx
sub eax, dword [ecx + 0x7c]
mov ebp, ebp
add edx, 0xffffffff
mov dword [esp + 0x44], edx
test ch, ch
test eax, eax
jge 0x1004fa8d
xor eax, eax
push edx
pop edx
cmp eax, edx
jg 0x1004fb3b
sub edx, eax
add edx, 1
xor ecx, ecx
test edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 0x34], edx
jle 0x1004fb29
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
imul ecx, ebx
mov esi, dword [ebp + 0x24]
add edx, ecx
add esi, edx
mov eax, ebx
neg eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0x20]
mov eax, ebx
neg eax
lea edx, [esi + edx*4]
add eax, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
add eax, eax
add ecx, edx
lea ecx, [esi + ecx*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov esi, dword [esp + 0x2c]
cmp edx, dword [esi]
jne 0x1004fb21
mov esi, dword [esp + 0x20]
cmp byte [esi], 0
jne 0x1004fb21
add esi, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
add dword [esp + 0x14], eax
add dword [esp + 0x2c], eax
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x20], esi
jl 0x1004faed
jmp 0x1004fb25
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
cmp ecx, edx
jge 0x1004fb3b
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test bl, bl
jmp 0x1004fd9c
mov bl, bl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
lea ecx, [ecx + esi - 1]
push edx
pop edx
mov eax, dword [ebp + 0x1c]
cmp ecx, eax
jl 0x1004fb55
lea ecx, [eax - 1]
mov ah, ah
cmp esi, ecx
jg 0x1004fbe1
sub ecx, esi
add ecx, 1
xor eax, eax
test ecx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x20], ecx
jle 0x1004fbcf
mov edx, dword [esp + 0x18]
mov eax, esi
mov esi, dword [ebp + 0x24]
imul eax, ebx
add edx, eax
add esi, edx
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x20]
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x38]
add eax, esi
mov esi, dword [ebp + 0x20]
lea eax, [esi + eax*4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
lea ecx, [ebx*4]
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
cmp esi, dword [edx]
jne 0x1004fbcb
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
jne 0x1004fbcb
add dword [esp + 0x18], ecx
add dword [esp + 0x14], ebx
add eax, 1
add edx, ecx
cmp eax, dword [esp + 0x20]
jl 0x1004fba5
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jge 0x1004fbe1
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov esi, esi
jmp 0x1004fd9c
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0x24]
lea eax, [ecx + edx]
mov ch, ch
movzx ecx, byte [edi]
test ecx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x38], ecx
jle 0x1004fcd5
movzx esi, byte [edi + 1]
mov ecx, dword [edi + 8]
mov dword [esp + 0x44], esi
mov edx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
lea esp, [esp]
mov eax, esi
cmp eax, 4
jb 0x1004fc3b
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1004fc3f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1004fc27
test eax, eax
je 0x1004fca4
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1004fc8e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004fca0
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1004fc8e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004fca0
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x1004fc8e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1004fca0
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x1004fca0
test esi, esi
mov edi, dword [esp + 0x10]
mov eax, 1
jg 0x1004fca6
or eax, 0xffffffff
jmp 0x1004fca6
mov edi, dword [esp + 0x10]
xor eax, eax
test eax, eax
jne 0x1004fcd5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
add dword [esp + 0xc], 1
mov eax, dword [esp + 0x38]
add ecx, esi
add edx, ebx
cmp dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
jl 0x1004fc20
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0xc], ecx
jge 0x1004fced
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
mov bh, bh
jmp 0x1004fd9c
cmp word [edi + 4], 0
jbe 0x1004ff1b
movzx esi, byte [edi + 0x27]
add esi, dword [ebp + 0x18]
mov edx, edx
movzx ecx, byte [edi + 3]
movzx edx, byte [edi]
add ecx, edx
test eax, eax
cmp esi, ebx
jl 0x1004fd14
mov esi, ebx
mov cl, cl
mov eax, dword [ebp + 0x14]
lea edx, [ecx + eax]
cmp edx, dword [ebp + 0x1c]
jl 0x1004fd25
mov ecx, dword [esp + 0x24]
push ebx
pop ebx
mov dword [esp + 0x18], 0
test bh, bh
test eax, 0x64d1
movzx edx, byte [edi + 2]
neg edx
cmp edx, ecx
jge 0x1004fd85
mov edi, dword [ebp + 0x20]
add eax, edx
imul eax, ebx
add esi, eax
lea edi, [edi + esi*4 - 4]
mov esi, dword [ebp + 0x18]
add eax, esi
mov esi, dword [ebp + 0x20]
lea esi, [esi + eax*4 - 4]
sub ecx, edx
xor eax, eax
mov ecx, ecx
cmp dword [ebp + 0x18], eax
jle 0x1004fd67
mov eax, dword [esi]
push edx
pop edx
mov edx, dword [edi]
sub edx, eax
add dword [esp + 0x18], edx
test eax, eax
lea eax, [ebx*4]
add esi, eax
add edi, eax
sub ecx, 1
jne 0x1004fd5a
mov edi, dword [esp + 0x10]
movzx eax, word [edi + 4]
cmp dword [esp + 0x18], eax
je 0x1004ff1b
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x10], edi
test ch, ch
test edi, edi
jne 0x1004f802
sub dword [esp + 0x30], 1
jns 0x1004ef05
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x2c]
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x18]
push ecx
movzx ecx, byte [edi + 0x27]
push edx
movzx edx, byte [edi + 3]
lea eax, [edi + 0xc]
push eax
movzx eax, byte [edi]
push ecx
mov ecx, dword [ebp + 0x14]
add edx, eax
mov eax, dword [ebp + 8]
push edx
push ecx
call fcn.1004ede0
add esp, 0x18
xchg ebx, eax
xchg ebx, eax
movzx edx, byte [edi + 0x27]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x78]
add esi, edx
add esi, dword [ebp + 0x18]
mov eax, eax
movzx eax, byte [edi + 3]
movzx edx, byte [edi]
add eax, edx
add eax, dword [ecx + 0x7c]
mov dh, dh
cmp esi, ebx
jl 0x1004fe14
mov esi, ebx
mov edi, edi
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx]
cmp edx, dword [ebp + 0x1c]
jl 0x1004fe29
mov eax, dword [ebp + 0x1c]
sub eax, ecx
test eax, 0x550b
mov ebx, ebx
movzx ecx, byte [edi + 2]
neg ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jge 0x1004ff06
mov edi, dword [ebp + 0x18]
mov edx, esi
sub edx, edi
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x14]
add ecx, edx
imul ecx, ebx
lea edx, [ecx + edi]
mov edi, dword [ebp + 0x24]
add edi, edx
sub eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edi
lea edi, [ecx + esi]
mov ecx, dword [ebp + 0x20]
lea edi, [ecx + edi*4]
lea ecx, [ecx + edx*4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
test esi, esi
mov edi, edi
test eax, eax
jle 0x1004fe8e
mov edx, dword [esp + 0x24]
mov ecx, dword [edx - 4]
mov ah, ah
mov edx, dword [edi - 4]
sub edx, ecx
mov bl, bl
cmp eax, esi
jge 0x1004feb1
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [eax], ecx
test dh, dh
add eax, 4
sub edi, 1
jne 0x1004fea1
mov edi, dword [esp + 0x34]
cmp esi, ebx
jge 0x1004fecc
mov ecx, ebx
mov eax, edi
sub ecx, esi
jmp 0x1004fec0
sub dword [eax], edx
test eax, eax
add eax, 4
sub ecx, 1
jne 0x1004fec0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
push eax
push 0
push ecx
call fcn.10102a00
add esp, 0xc
mov ebp, ebp
add dword [esp + 0x3c], ebx
lea eax, [ebx*4]
add dword [esp + 0x24], eax
add edi, eax
sub dword [esp + 0x38], 1
mov dword [esp + 0x34], edi
jne 0x1004fe78
mov edi, dword [esp + 0x10]
movzx eax, byte [edi + 3]
movzx edx, byte [edi]
mov ecx, dword [ebp + 8]
add eax, edx
add eax, dword [ecx + 0x7c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 0x18]
push edx
movzx edx, byte [edi + 0x27]
push eax
movzx eax, byte [edi + 3]
lea ecx, [edi + 0xc]
push ecx
movzx ecx, byte [edi]
push edx
mov edx, dword [ebp + 0x14]
add eax, ecx
push eax
mov eax, dword [ebp + 8]
push edx
call fcn.1004ede0
add esp, 0x18
xchg ebx, eax
xchg ebx, eax
movzx eax, byte [edi + 0x27]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
add edx, eax
add edx, esi
mov dword [esp + 0x24], edx
test edx, edx
movzx ecx, byte [edi]
movzx eax, byte [edi + 3]
add eax, ecx
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x7c]
test ecx, ecx
cmp edx, ebx
jl 0x1004ff7b
mov edx, ebx
mov dword [esp + 0x24], ebx
mov edi, edi
mov ecx, dword [ebp + 0x14]
add ecx, eax
cmp ecx, dword [ebp + 0x1c]
jl 0x1004ff8d
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
test dh, dh
movzx ecx, byte [edi + 2]
neg ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jge 0x10050068
sub edx, esi
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x14]
add ecx, edx
imul ecx, ebx
lea edx, [ecx + esi]
mov esi, dword [ebp + 0x24]
add esi, edx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x24]
add esi, ecx
mov ecx, dword [ebp + 0x20]
sub eax, dword [esp + 0x30]
lea esi, [ecx + esi*4]
lea edx, [ecx + edx*4]
mov dword [esp + 0xc], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov bh, bh
mov al, al
test eax, eax
jle 0x1004ffea
mov ecx, dword [edx - 4]
test ah, ah
mov edx, dword [esp + 0xc]
mov edx, dword [edx - 4]
sub edx, ecx
push ebx
pop ebx
cmp eax, dword [esp + 0x24]
jge 0x1005000f
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, ecx
add eax, 4
sub esi, 1
jne 0x10050003
mov esi, dword [esp + 0x24]
cmp esi, ebx
jge 0x1005002c
mov eax, dword [esp + 0xc]
mov ecx, ebx
sub ecx, esi
nop
sub dword [eax], edx
mov ecx, ecx
add eax, 4
sub ecx, 1
jne 0x10050020
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
push eax
push 0
push esi
call fcn.10102a00
add esp, 0xc
mov ecx, ecx
mov edx, dword [esp + 0x3c]
lea eax, [ebx*4]
add dword [esp + 0xc], eax
add edx, eax
add esi, ebx
sub dword [esp + 0x38], 1
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], esi
jne 0x1004ffd8
movzx eax, byte [edi + 3]
movzx ecx, byte [edi]
mov edx, dword [ebp + 8]
add eax, ecx
add eax, dword [edx + 0x7c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret