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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606318
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x7664f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ecx, [esp + 0x54]
call fcn.00424100
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov ebx, eax
cmp ecx, eax
jbe 0x415d98
call fcn.0055cb74
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov edi, ecx
cmp ecx, eax
jbe 0x415da7
call fcn.0055cb74
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.00424650
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 0x415e22
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
je 0x415df2
push eax
call fcn.0055c72e
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.0055c72e
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 0x415fc2
mov dword [esp + 0x18], edi
jmp 0x415e44
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 0x415fa4
sar eax, 4
and eax, 0xf
mov edx, eax
mov dword [esp + 0x20], edx
cmp esi, edx
je 0x415fa4
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
mov dword [esp + 0x2c], eax
jg 0x415fa4
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, ecx
jge 0x415fa4
mov ecx, dword [edi + ebx*4]
mov edx, ecx
sar edx, 8
and edx, 3
cmp dword [esp + 0x1c], edx
jne 0x415fa4
mov eax, ecx
sar eax, 4
and eax, 0xf
cmp esi, eax
je 0x415f9a
cmp dword [esp + 0x20], eax
je 0x415f9a
mov edi, eax
neg edi
lea eax, [edi + esi]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, 2
jg 0x415f93
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 0x415f93
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.00424260
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.00424230
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.00424e70
add esp, 0x14
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00424260
mov ecx, eax
call fcn.004c4660
test al, al
je 0x415f93
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x58]
call fcn.004242e0
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.004242e0
mov esi, dword [esp + 0x28]
mov edi, dword [ebp + 8]
inc ebx
cmp ebx, dword [edi + 0x44]
jl 0x415e91
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 0x415e40
xor ebx, ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x416011
cmp eax, ebx
je 0x415fe1
push eax
call fcn.0055c72e
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.0055c72e
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 0x41601e
push eax
call fcn.0055c72e
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.0055c72e
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