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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65a318
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ecx, [esp + 0x54]
call fcn.00425a70
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov ebx, eax
cmp ecx, eax
jbe 0x417708
call fcn.005aec38
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov edi, ecx
cmp ecx, eax
jbe 0x417717
call fcn.005aec38
mov eax, dword [esp + 0x54]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x68]
call fcn.00426060
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov esi, eax
sar eax, 8
and eax, 3
sar esi, 4
mov edx, eax
and esi, 0xf
cmp edx, 3
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edx
jl 0x417792
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
je 0x417762
push eax
call fcn.005ae7f2
add esp, 4
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.005ae7f2
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x44]
xor ebx, ebx
lea eax, [ecx - 1]
mov dword [esp + 0x14], ebx
test eax, eax
jle 0x417932
mov dword [esp + 0x18], edi
jmp 0x4177b4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ebx, eax
sar ebx, 8
and ebx, 3
cmp edx, ebx
jne 0x417914
sar eax, 4
and eax, 0xf
mov edx, eax
mov dword [esp + 0x20], edx
cmp esi, edx
je 0x417914
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
mov dword [esp + 0x2c], eax
jg 0x417914
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, ecx
jge 0x417914
mov ecx, dword [edi + ebx*4]
mov edx, ecx
sar edx, 8
and edx, 3
cmp dword [esp + 0x1c], edx
jne 0x417914
mov eax, ecx
sar eax, 4
and eax, 0xf
cmp esi, eax
je 0x41790a
cmp dword [esp + 0x20], eax
je 0x41790a
mov edi, eax
neg edi
lea eax, [edi + esi]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, 2
jg 0x417903
mov eax, dword [esp + 0x20]
add eax, edi
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x2c]
add eax, esi
cmp eax, 4
jne 0x417903
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
and ecx, 0x13f0
shl ecx, 0xc
sar eax, 4
and eax, 0x13f
or ecx, eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x58]
call fcn.00425c10
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.00425be0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x58]
call fcn.00426850
add esp, 0x14
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00425c10
mov ecx, eax
call fcn.004c1270
test al, al
je 0x417903
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x58]
call fcn.00425c90
mov eax, ebx
or eax, 0x40
shl eax, 4
or eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
shl eax, 8
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
call fcn.00425c90
mov esi, dword [esp + 0x28]
mov edi, dword [ebp + 8]
inc ebx
cmp ebx, dword [edi + 0x44]
jl 0x417801
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
add dword [esp + 0x18], 4
inc eax
lea edx, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4177b0
xor ebx, ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x417981
cmp eax, ebx
je 0x417951
push eax
call fcn.005ae7f2
add esp, 4
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.005ae7f2
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, ebx
je 0x41798e
push eax
call fcn.005ae7f2
add esp, 4
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.005ae7f2
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc