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

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x101ad3b4]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
mov ebp, dword [edi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x15c]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x48]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x4c]
push 0x10160a44
mov dword [esp + 0xac], ecx
mov ecx, dword [edi + 0x160]
push 0x10160a44
mov dword [esp + 0x18], edi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.1000c6a0
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
mov dword [esp + 0x70], esi
jg 0x1006701b
push ebx
mov ebx, edi
jmp 0x10066567
mov ebp, dword [esp + 0xa4]
cmp dword [ebx + 0x164], 0
mov dword [esp + 0x18], 0
jne 0x1006701a
mov edi, dword [esp + 0x48]
add edi, 0x3264
push 0x3e8
push edi
call fcn.10041030
add esp, 8
test esi, esi
jl 0x10067033
cmp esi, dword [ebp + 8]
jge 0x10067033
mov ecx, dword [ebp + 4]
mov edx, dword [ebx + 0x10]
mov esi, dword [ecx + esi*4]
mov ebp, dword [esp + 0x48]
push 0
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x8c]
push edx
push esi
push ebp
call fcn.10063680
add esp, 0x1c
test eax, eax
push edi
jne 0x100665e0
call fcn.100410c0
jmp 0x10066ef5
call fcn.100410c0
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 0x1c]
add esp, 4
cmp eax, dword [ebx + 0x20]
mov dword [esp + 0x54], edi
jg 0x10066ee0
mov esi, dword [esp + 0x84]
cmp esi, dword [ebx + 0x24]
jg 0x10066ee0
cmp dword [ebx + 0x18], 0
jne 0x10066657
test esi, esi
jle 0x100666e8
mov ebx, dword [esp + 0x2c]
mov edx, edi
mov edi, esi
add edx, 3
mov esi, eax
jmp 0x10066630
test esi, esi
jle 0x1006664b
mov eax, edx
mov ecx, esi
jmp 0x10066640
mov byte [eax], 0
add eax, 4
sub ecx, 1
jne 0x10066640
add edx, ebx
sub edi, 1
jne 0x10066630
jmp 0x100666e8
mov ecx, esi
imul ecx, dword [esp + 0x2c]
push ecx
call fcn.100f5b7c
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x10066ee0
test esi, esi
jle 0x100666e8
mov edx, dword [esp + 0x84]
mov ebx, eax
lea ebp, [edi + 1]
mov dword [esp + 0x38], edx
jmp 0x10066690
cmp dword [esp + 0x80], 0
jle 0x100666d9
mov edi, dword [esp + 0x80]
mov esi, ebx
mov ecx, ebp
movzx eax, byte [ecx + 1]
movzx edx, byte [ecx - 1]
add edx, eax
movzx eax, byte [ecx]
add edx, eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
movzx eax, dl
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov dword [esi], edx
add ecx, 4
add esi, 4
sub edi, 1
jne 0x100666a5
mov eax, dword [esp + 0x2c]
add ebx, eax
add ebp, eax
sub dword [esp + 0x38], 1
jne 0x10066690
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x18]
add eax, 0x5c
push 0x101618f0
xor ebx, ebx
push eax
mov dword [esp + 0x84], ebx
call fcn.100f86bd
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x90]
movzx ecx, byte [esp + 0x86]
mov edi, dword [esp + 0x8c]
movzx edx, ah
and eax, 0xff
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov dword [esp + 0x58], eax
lea eax, [ebp - 1]
imul eax, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + edi*4 - 4]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x58]
add esp, 0xc
cmp ebx, ecx
mov dword [esp + 0x6c], edx
mov edx, dword [eax + esi]
jne 0x1006688f
cmp ecx, edx
jne 0x1006688f
lea ecx, [eax + edi*4]
cmp edx, dword [ecx + esi - 4]
jne 0x1006688f
xor edx, edx
test ebp, ebp
mov dword [esp + 0x50], 1
jle 0x100667af
xor eax, eax
test edi, edi
jle 0x100667a4
mov ecx, esi
cmp dword [ecx], ebx
jne 0x100667a0
add eax, 1
add ecx, 4
cmp eax, edi
jl 0x10066790
jmp 0x100667a4
cmp eax, edi
jl 0x100667af
add esi, dword [esp + 0x2c]
add edx, 1
cmp edx, ebp
jl 0x10066788
xor esi, esi
test ebp, ebp
jle 0x100667e4
xor edx, edx
lea eax, [edi - 1]
test eax, eax
jl 0x100667d9
lea ecx, [edx + eax*4]
add ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
jne 0x100667d5
sub eax, 1
sub ecx, 4
test eax, eax
jge 0x100667c5
jmp 0x100667d9
test eax, eax
jge 0x100667e4
add edx, dword [esp + 0x2c]
add esi, 1
cmp esi, ebp
jl 0x100667b7
lea esi, [ebp - 1]
test esi, esi
jl 0x1006683d
mov eax, dword [esp + 0x2c]
mov edx, esi
imul edx, eax
mov ebx, eax
neg ebx
add edx, dword [esp + 0x18]
lea esp, [esp]
xor eax, eax
test edi, edi
jle 0x1006682b
mov ebp, dword [esp + 0x4c]
mov ecx, edx
lea esp, [esp]
cmp dword [ecx], ebp
jne 0x10066820
add eax, 1
add ecx, 4
cmp eax, edi
jl 0x10066810
jmp 0x10066824
cmp eax, edi
jl 0x10066836
mov ebp, dword [esp + 0x84]
sub esi, 1
add edx, ebx
test esi, esi
jge 0x10066800
jmp 0x1006683d
mov ebp, dword [esp + 0x84]
lea esi, [ebp - 1]
test esi, esi
jl 0x1006688f
mov ebx, dword [esp + 0x2c]
mov edx, esi
imul edx, ebx
neg ebx
nop
lea eax, [edi - 1]
test eax, eax
jl 0x1006687d
mov ebp, dword [esp + 0x4c]
lea ecx, [edx + eax*4]
add ecx, dword [esp + 0x18]
cmp dword [ecx], ebp
jne 0x10066872
sub eax, 1
sub ecx, 4
test eax, eax
jge 0x10066862
jmp 0x10066876
test eax, eax
jge 0x10066888
mov ebp, dword [esp + 0x84]
sub esi, 1
add edx, ebx
test esi, esi
jge 0x10066850
jmp 0x1006688f
mov ebp, dword [esp + 0x84]
mov ecx, ebp
imul ecx, edi
mov dword [esp + 0x64], ecx
imul ecx, dword [esp + 0xa8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x30], ecx
xor ecx, ecx
cmp eax, ecx
jne 0x10066a2c
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
sub eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
js 0x10066eaf
mov esi, dword [esp + 0x68]
mov ecx, edx
mov edx, dword [ecx + 0x20]
sub edx, dword [esp + 0x80]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edx
xor ecx, ecx
lea esp, [esp]
cmp edx, ecx
mov dword [esp + 0x20], ecx
jl 0x10066a08
mov dword [esp + 0x28], esi
cmp dword [esp + 0x84], ecx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], ecx
jle 0x100669d6
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
xor esi, esi
cmp dword [esp + 0x80], esi
jle 0x1006699c
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [edi]
push eax
push ecx
mov ecx, dword [ebx + esi*4]
sub ebp, 1
call fcn.1004aa40
add esp, 0x14
test eax, eax
je 0x10066976
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x10066f15
lea edx, [ecx + ebp]
cmp edx, eax
jl 0x1006699c
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x80]
jl 0x10066944
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x10066f15
add eax, ebp
cmp eax, ecx
jl 0x100669d6
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
add ebx, dword [esp + 0x2c]
add dword [esp + 0x24], ecx
add eax, 1
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x38], eax
jl 0x10066935
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x10], edx
jge 0x10066f15
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], 4
add eax, 1
xor ecx, ecx
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
jle 0x10066910
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
add esi, dword [esp + 0x44]
add edi, 1
cmp edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], esi
jle 0x10066900
jmp 0x10066eaf
cmp eax, 1
jne 0x10066bad
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x24]
sub eax, ebp
mov dword [esp + 0x1c], eax
js 0x10066eaf
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
imul eax, esi
mov edx, dword [ecx + 0x20]
sub edx, dword [esp + 0x80]
add eax, dword [esp + 0x68]
mov ecx, esi
neg ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
xor esi, esi
cmp edx, esi
mov dword [esp + 0x20], esi
jl 0x10066b8f
mov dword [esp + 0x24], eax
jmp 0x10066a90
cmp dword [esp + 0x84], esi
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], esi
jle 0x10066b57
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
xor esi, esi
cmp dword [esp + 0x80], esi
jle 0x10066b1c
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [edi]
push eax
push ecx
mov ecx, dword [ebx + esi*4]
sub ebp, 1
call fcn.1004aa40
add esp, 0x14
test eax, eax
je 0x10066af6
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x10066f2d
lea edx, [ecx + ebp]
cmp edx, eax
jl 0x10066b1c
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x80]
jl 0x10066ac4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x10066f2d
lea edx, [eax + ebp]
cmp edx, ecx
jl 0x10066b5f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
add ebx, dword [esp + 0x2c]
add dword [esp + 0x28], ecx
add eax, 1
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x34], eax
jl 0x10066ab5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x10066f2d
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 4
add eax, 1
xor esi, esi
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
jle 0x10066a90
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
sub edi, 1
add eax, ecx
cmp edi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], eax
jge 0x10066a73
jmp 0x10066eaf
cmp eax, 2
jne 0x10066d26
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 0x24]
sub ecx, ebp
mov dword [esp + 0x38], ecx
js 0x10066eaf
mov eax, edx
mov eax, dword [eax + 0x20]
sub eax, dword [esp + 0x80]
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edx
test eax, eax
mov dword [esp + 0x20], eax
jl 0x10066d02
lea eax, [edx + eax*4]
add eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
lea ebx, [ebx]
mov ebp, dword [esp + 0x64]
xor eax, eax
cmp dword [esp + 0x84], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
jle 0x10066cd2
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jmp 0x10066c30
xor esi, esi
cmp dword [esp + 0x80], esi
jle 0x10066c97
mov edi, dword [esp + 0x28]
nop
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [ebx + esi*4]
push edx
mov edx, dword [edi]
push eax
sub ebp, 1
call fcn.1004aa40
add esp, 0x14
test eax, eax
je 0x10066c72
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x10066f2d
add ecx, ebp
cmp ecx, eax
jl 0x10066c97
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x80]
jl 0x10066c40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x10066f2d
lea edx, [eax + ebp]
cmp edx, ecx
jl 0x10066cda
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
add ebx, dword [esp + 0x2c]
add dword [esp + 0x28], ecx
add eax, 1
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
jl 0x10066c30
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x10066f2d
mov eax, dword [esp + 0x20]
sub dword [esp + 0x24], 4
sub eax, 1
test eax, eax
mov dword [esp + 0x20], eax
jge 0x10066c00
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add edx, dword [esp + 0x44]
add esi, 1
cmp esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], edx
jle 0x10066be3
jmp 0x10066eaf
cmp eax, 3
jne 0x10066eaf
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x24]
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
js 0x10066eaf
mov eax, edx
mov esi, dword [eax + 0x20]
mov edx, dword [esp + 0x44]
sub esi, dword [esp + 0x80]
mov eax, ecx
imul eax, edx
neg edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
lea ebx, [ebx]
test esi, esi
mov dword [esp + 0x20], esi
jl 0x10066e9a
lea eax, [eax + esi*4]
add eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
jmp 0x10066d90
mov ebp, dword [esp + 0x64]
xor eax, eax
cmp dword [esp + 0x84], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
jle 0x10066e62
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jmp 0x10066dc0
xor esi, esi
cmp dword [esp + 0x80], esi
jle 0x10066e27
mov edi, dword [esp + 0x28]
nop
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [ebx + esi*4]
push edx
mov edx, dword [edi]
push eax
sub ebp, 1
call fcn.1004aa40
add esp, 0x14
test eax, eax
je 0x10066e02
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x10066f2d
add ecx, ebp
cmp ecx, eax
jl 0x10066e27
add esi, 1
add edi, 4
cmp esi, dword [esp + 0x80]
jl 0x10066dd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x10066f2d
lea edx, [eax + ebp]
cmp edx, ecx
jl 0x10066e6a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
add ebx, dword [esp + 0x2c]
add dword [esp + 0x28], ecx
add eax, 1
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
jl 0x10066dc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x10066f2d
mov eax, dword [esp + 0x20]
sub dword [esp + 0x24], 4
sub eax, 1
test eax, eax
mov dword [esp + 0x20], eax
jge 0x10066d90
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, 1
add eax, edx
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], eax
jge 0x10066d70
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x10], 0
jne 0x10066ec6
mov edx, dword [esp + 0x48]
cmp dword [edx + 0x32fc], 0
jne 0x10066ed3
mov eax, dword [esp + 0x54]
push eax
call fcn.100f5c3f
add esp, 4
cmp dword [esi + 0x18], 0
je 0x10066ef8
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x10066ef0
cmp dword [ebx + 0x10], 0
jne 0x10066eef
cmp dword [ebp + 0x32fc], 0
jne 0x10066ef8
push edi
call fcn.100f5c3f
add esp, 4
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x14]
add esi, 1
cmp esi, dword [ebx + 0xc]
mov dword [esp + 0x74], esi
jle 0x10066560
jmp 0x1006701a
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
lea esi, [eax + edx]
mov edx, dword [esp + 0x1c]
lea edi, [edx + ecx]
jmp 0x10066f43
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
lea esi, [edx + eax]
mov edx, dword [esp + 0x60]
lea edi, [ecx + edx]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x10066f5a
mov ecx, dword [esp + 0x48]
cmp dword [ecx + 0x32fc], 0
jne 0x10066f67
mov edx, dword [esp + 0x54]
push edx
call fcn.100f5c3f
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0
je 0x10066f7e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100f5c3f
add esp, 4
mov dl, 0x7c
push edi
mov al, 0x64
mov cl, 0x25
mov byte [esp + 0xb6], dl
mov byte [esp + 0xb9], dl
mov edx, dword [esp + 0x78]
push esi
mov byte [esp + 0xb9], al
mov byte [esp + 0xbc], al
mov byte [esp + 0xbf], al
push edx
lea eax, [esp + 0xbc]
mov byte [esp + 0xbc], cl
mov byte [esp + 0xbf], cl
mov byte [esp + 0xc2], cl
push eax
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0xcc], 0
call fcn.100f7960
lea eax, [esp + 0xd0]
add esp, 0x14
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10066ff0
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x160]
sub eax, edx
lea edx, [esp + eax + 0xbc]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.1000c6a0
pop ebx
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100f611a
add esp, 0x1b0
ret
jmp fcn.100e4be9